upload-remote-file
v1.0.1
Published
nodejs upload remote file
Downloads
3
Readme
upload-remote-file
Table of Contents
About
Upload remote url file to upload server. The tool will download the remote file to a temp file and remove it when uploaded.
Installing
A step by step series of examples that tell you how to get a development env running.
Say what the step will be
npm i upload-remote-file
Usage
Add notes about how to use the system.
const Upload = require('upload-remote-file')
const upload = new Upload()
upload.request({
url:"",
formData:{
file1:upload.getReadStream(remoteUrl)
}
})
The other options is same as https://github.com/request/request-promise-native
API
upload.request(options)
formData value can be upload.getReadStream()
The other options are same as https://github.com/request/request-promise-native
upload.getReadStream(url,options)
options are same as https://github.com/sindresorhus/got#options