dorian-chunked-file-uploader-ts
v1.3.3
Published
Chunked mode file uploader
Downloads
18
Maintainers
Readme
Dorian Chunked File Uploader TS
Javascript multi engine chunked uploader
Implemented engine
- Google Cloud Storage: DONE
- Amazon Aws S3: TODO
- Miniio: TODO
- Dryrun: TODO
Usage
const presignedLink = "https://storage.googleapis.com/mybucket/my-path/myFile.txt"
const callbacks :ProgressCallbacks = {
onStart: (fileName:string,serivceId?:string):void => {};
onProgress: (fileName:string,chunk:Chunk,serivceId?:string):void => {};
onComplete: (fileName:string,serivceId?:string):void => {};
}
const options : UploadCongiguration = {file};
const engine = Factory.create(EngineType.GCS, options,callbacks);
await engine.start(presignedLink);
Init, compile & local install
yarn install
yarn test
yarn build
# Install to local npm repo
yarn link
Import from local to your project
yarn link dorian-chunked-file-uploader-ts
Use latest version
yarn add dorian-chunked-file-uploader-ts