You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Cloud Storage does support uploading a file in chunks: Resumable Uploads:
Use a resumable upload when you are uploading large files or uploading over a slow connection. For example file size limits when using resumable uploads, see Upload size considerations.
Problem
When uploading a file larger than 10MB (actual size depends on device and available RAM), the application may crash.
This is because the entire file is loaded into RAM as a variable.
Possible solution
To avoid loading the whole file, we can use the chunk stream: https://github.com/miguelpruivo/flutter_file_picker/wiki/FAQ#q-how-do-do-i-use-withreadstream. However, Firebase doesn't provide an easy way to upload a file in chunks.
Google Cloud Storage does support uploading a file in chunks: Resumable Uploads:
Use a resumable upload when you are uploading large files or uploading over a slow connection. For example file size limits when using resumable uploads, see Upload size considerations.
https://cloud.google.com/storage/docs/resumable-uploads
Google Cloud Storage gives you a URL. You may be able to use this URL to upload the chunks using one of the following packages:
https://pub.dev/packages/chunked_uploader
https://pub.dev/packages/large_file_uploader
https://pub.dev/packages/upload_largest_files
The text was updated successfully, but these errors were encountered: