Lets say you have a web application that uses NodeJS and ReactJS. Both are working on your local machine. NodeJS is accepting some files that are selected from ReactJS GUI with a simple file upload. Like this :
<input type="file" id="fileUploaderInput" ref="fileUploader"/>
You want to pass this file to your NodeJS so that it will perform some big data operations. However, since the Browsers does not have the access to client's File System, you can not take the absolute path of the file selected. Hence you can not inform your NodeJS server about the file. What should be the best approach for this?
I tried reading the file with react and then write it to a path where NodeJS already knows, but it does not seem to me as a best approach.