@romain-faust/upload-file
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@romain-faust/upload-file

Generic set of tools related to file upload.

Installation

With NPM:

npm install @romain-faust/upload-file

With PNPM:

pnpm add @romain-faust/upload-file

With Yarn:

yarn add @romain-faust/upload-file

Dependencies

Usage

import type { UploadFile } from '@romain-faust/upload-file'

const FileUploadInput = () => {
    const uploadFile: UploadFile = getUploadFile()

    const handleFileInputSubmit = (data: ArrayBuffer) => {
        uploadFile('path/to/the/file', data).subscribe()
    }

    // ...
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @romain-faust/upload-file

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

3.2 kB

Total Files

4

Last publish

Collaborators

  • romain-faust