get-file-then-post

1.0.4 • Public • Published

Features

  • Redirect file data from one url to another url

Installation

npm i get-file-then-post

Usage

const getFileThenPost = require('get-file-then-post');

getFileThenPost({
    getUrl: "npmjs.com/file.exe",
    postUrl: "npmjs.com/uploadFile",
    fileName: "file.exe"
});

Options

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'

Package Sidebar

Install

npm i get-file-then-post

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

2.85 kB

Total Files

3

Last publish

Collaborators

  • zerrolizen