1.0.2 • Published 1 year ago

upload-largest-files v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

upload-largest-files

Build Lint Test

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:
ParameterTypeDescription
fileFileThe file to upload.
urlstringThe server url to make upload.
httpMethodPOST,GET,PUT,PATCHThe method to make upload (POST is default).
onProgressstringThe callback to follow the upload progress.