I need to read a local file and post it to the server, we do not need to choose the file. The path of the file is given.
uploading a file when user manually selects works but in the above scenario we need to read an existing file and post it.
I need to read a local file and post it to the server, we do not need to choose the file. The path of the file is given.
uploading a file when user manually selects works but in the above scenario we need to read an existing file and post it.
I generally just require the file and upload it.
var file = require('path');