How to pass media file path from phone to nodejs?

Hi,

I’m creating an application where Im sending a media file to google drive. Google drive has its nodejs api to do this. But im stuck at a point where Im not able to send the file path to nodejs which inturn creates a filestream and upload the file to google drive. when I run the nodejs script locally on my machine it works fine because the media file is in the same folder as the script.

How do i get this working? How do i pass the media file to nodejs and then to google drive? Please help me.

Thanks!

If I understood, you need to upload a file to your node.js server, right? If so, you can use the FileTransfer plugin:

Once the file is in your server, you can upload it to Google Drive using it’s node.js API.