upload-remote-file

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i upload-remote-file

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.4 kB

Total Files

5

Last publish

Collaborators

  • xiaomingplus