get-file-then-post
Version:
get arraybuffer file data from specified url and post it to another url
32 lines (25 loc) • 645 B
Markdown
* Redirect file data from one url to another url
`npm i get-file-then-post`
```javascript
const getFileThenPost = require('get-file-then-post');
getFileThenPost({
getUrl: "npmjs.com/file.exe",
postUrl: "npmjs.com/uploadFile",
fileName: "file.exe"
});
```
**getUrl** *- url from which the file data gets requested*\
Type: String\
Required: true\
\
**postUrl** *- url to which the requested file data (type: arraybuffer) gets postet*\
Type: String\
Required: true\
\
**fileName** *- naming with which the file gets postet*\
Type: String\
Default: 'file'