-
Couldn't load subscription status.
- Fork 7
Shaloo/ar 4947 chunksize #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for storagesdk-ref-guide ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
|
||
| ### Upload Chunk Size | ||
|
|
||
| Arcana Storage SDK uses chunked uploading mode. Each file is split into chunks of default size 10MB and chunks are uploaded one by one. These chunks are further processed on the server, encrypted, and split into multiple parts before being stored in the Arcana Store. Chunked uploading helps to overcome the server's default upload size limitation and there is no server-side setting change required to upload a very large file size. Also, it helps in decentralizing data storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uses chunked uploading mode
What does that even mean? I suggest: “uploads files in chunks”.
chunks of default size 10MB
I recommend: “chunks (10 MiB by default)”.
|
|
||
| Arcana Storage SDK uses chunked uploading mode. Each file is split into chunks of default size 10MB and chunks are uploaded one by one. These chunks are further processed on the server, encrypted, and split into multiple parts before being stored in the Arcana Store. Chunked uploading helps to overcome the server's default upload size limitation and there is no server-side setting change required to upload a very large file size. Also, it helps in decentralizing data storage. | ||
|
|
||
| You can change the default chunk size while uploading a file. Make sure the new chunk size is a multiple of 16 otherwise there may be issues in downloading the file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there may be issues in downloading the file
Could be worded more precisely.
| You can change the default chunk size while uploading a file. Make sure the new chunk size is a multiple of 16 otherwise there may be issues in downloading the file. | |
| You can change the default chunk size while uploading a file. Make sure the new chunk size is a multiple of 16 (bytes) otherwise you may face unexpected issues if you try to download the file. |
| 2. Import `StorageProvider` from the Storage SDK package in the dApp. Call `init` method of `StorageProvider` and specify the Web3 wallet `provider` and the `appAddress` as input parameters. **Note:** Get the provider via the Auth SDK or third-party supported wallet. You can copy the appAddress from the [Arcana Developer Dashboard](https://docs.beta.arcana.network/docs/config_dapp) after registering your dApp | ||
| 3. Use `StorageProvider` to: | ||
| - `upload` and push file data into the Arcana Store. **Note:** Save file DID that is returned after file upload operation is successful. | ||
| - `upload` and push file data into the Arcana Store. **Note:** Save file DID that is returned after the file upload operation is successful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good opportunity to fix this, “Save file DID” is not English.
| - `upload` and push file data into the Arcana Store. **Note:** Save file DID that is returned after the file upload operation is successful. | |
| - `upload` and push file data into the Arcana Store. **Note:** The newly saved file's DID is returned once the file upload operation is successful. |
Pull Request Template
Resolves or continues AR-4947.
Blocking dependencies
NA
Changes
Upload File section updated with additional code snippet and some usage guidance on specifying chunk size during upload.
Checklist
developer/AR-XXX-issue-name.