upload-largest-files
v1.0.2
Published
Upload largest files
Downloads
2
Readme
upload-largest-files
This is a simple lib to upload large files.
Demo
https://emirdeliz.github.io/upload-largest-files/
How to use?
const file = <file to upload>
const url = <endpoint>;
const onProgress = <progress callback>
const result = await window.uploadLargestFiles.uploadFile({
file,
url,
onProgress,
});
About the parameters:
| Parameter | Type | Description | | -------------- | ------------------ | -------------------------------------------- | | file | File | The file to upload. | | url | string | The server url to make upload. | | httpMethod | POST,GET,PUT,PATCH | The method to make upload (POST is default). | | onProgress | string | The callback to follow the upload progress. |