capacitor-file-chunk-reader
v0.1.9
Published
A capacitor plugin for Android and IOS to upload BIG files in chunks
Downloads
2
Readme
capacitor-file-chunk-reader
A capacitor plugin for Android and IOS to upload BIG files in chunks to
- Dropbox
- Azure Blob Storage
Install
npm install capacitor-file-chunk-reader
npx cap sync
API
readChunk(...)
dropboxUploadFileChunk(...)
dropboxUploadFile(...)
azureBlobStorageUploadFileChunk(...)
azureBlobStorageUploadFile(...)
- Interfaces
readChunk(...)
readChunk(options: DropboxMobileOptions) => Promise<{ data: string; }>
| Param | Type |
| ------------- | --------------------------------------------------------------------- |
| options
| DropboxMobileOptions |
Returns: Promise<{ data: string; }>
dropboxUploadFileChunk(...)
dropboxUploadFileChunk(options: DropboxMobileOptions | DropboxWebOptions) => void
| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------------------------------------- |
| options
| DropboxMobileOptions | DropboxWebOptions |
dropboxUploadFile(...)
dropboxUploadFile(options: DropboxMobileOptions | DropboxWebOptions) => void
| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------------------------------------- |
| options
| DropboxMobileOptions | DropboxWebOptions |
azureBlobStorageUploadFileChunk(...)
azureBlobStorageUploadFileChunk(options: AzureBlobStorageMobileOptions | AzureBlobStorageWebOptions) => void
| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options
| AzureBlobStorageMobileOptions | AzureBlobStorageWebOptions |
azureBlobStorageUploadFile(...)
azureBlobStorageUploadFile(options: AzureBlobStorageMobileOptions | AzureBlobStorageWebOptions) => void
| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options
| AzureBlobStorageMobileOptions | AzureBlobStorageWebOptions |
Interfaces
DropboxMobileOptions
| Prop | Type |
| ----------------- | ------------------- |
| uri
| string |
| accessToken
| string |
| targetPath
| string |
| fileSize
| number |
DropboxWebOptions
| 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 |