Friday, 1 November 2019

Upload Files in Node.js without using a form.

Hi Guys! Quite new to Node.js. Need some help.I need to upload multiple files to Google Storage Cloud. I created a system where I added all the relevant details (such as name,author etc) in an Excel file including the path of the file stored on my computer that needs to be uploaded. Once I upload this excel file then the code iterates through the excel data (converted into Json by https://www.npmjs.com/package/xlsx ) and uploads the files stored on my computer with the help of the path of the file.However once I deployed the app on Heroku and tried again I get an error Error: ENOENT: no such file or directory, open 'D:/Upload/Documents.pdf' . Why is this error happening on the deployed app and how can I overcome it?

Submitted November 01, 2019 at 05:16PM by ujshah

No comments:

Post a Comment