2.0.0 • Published 2 years ago

@romain-faust/upload-file v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago