capacitor-file-chunk-reader
A capacitor plugin for Android and IOS to upload BIG files in chunks to
- Dropbox
- Azure Blob Storage
npm install capacitor-file-chunk-reader
npx cap sync
readChunk(options: DropboxMobileOptions) => Promise<{ data: string; }>
Returns: Promise<{ data: string; }>
dropboxUploadFileChunk(...)
dropboxUploadFileChunk(options: DropboxMobileOptions | DropboxWebOptions) => void
dropboxUploadFile(options: DropboxMobileOptions | DropboxWebOptions) => void
azureBlobStorageUploadFileChunk(...)
azureBlobStorageUploadFileChunk(options: AzureBlobStorageMobileOptions | AzureBlobStorageWebOptions) => void
azureBlobStorageUploadFile(...)
azureBlobStorageUploadFile(options: AzureBlobStorageMobileOptions | AzureBlobStorageWebOptions) => void
Prop |
Type |
uri |
string |
accessToken |
string |
targetPath |
string |
fileSize |
number |
Prop |
Type |
accessToken |
string |
file |
File |
targetPath |
string |
progressCallback |
(progress: any) => void |
doneCallback |
(success: boolean, response: any) => void |
AzureBlobStorageMobileOptions
Prop |
Type |
sasToken |
string |
accountName |
string |
containerName |
string |
targetPath |
string |
fileSize |
number |
AzureBlobStorageWebOptions
Prop |
Type |
sasToken |
string |
accountName |
string |
containerName |
string |
file |
File |
targetPath |
string |
progressCallback |
(progress: any) => void |
doneCallback |
(success: boolean, response: any) => void |