capacitor-firebase icon indicating copy to clipboard operation
capacitor-firebase copied to clipboard

feat(storage): support resumable uploads

Open bojanbizjak opened this issue 3 months ago • 0 comments

Plugin(s)

  • [ ] Analytics
  • [ ] App
  • [ ] App Check
  • [ ] Authentication
  • [ ] Crashlytics
  • [ ] Cloud Firestore
  • [ ] Cloud Messaging
  • [X] Cloud Storage
  • [ ] Performance
  • [ ] Remote Config

Current problem

Users can add images and videos on the iOS and Android platforms, which are now sent to Google Storage in chunks (https://cloud.google.com/storage/docs/performing-resumable-uploads#initiate-session) in the JS/Capacitor implementation. Such an upload method would be very welcome in a native implementation. We now store data about upload sessions in SQLite, and we plan to do so in the future as well.

Preferred solution

On iOS and Android platforms, a session key should be provided to be used for resume upload, as explained in the following link: https://firebase.google.com/docs/storage/android/upload-files#continuing_uploads_across_process_restarts

Alternative options

No response

Additional context

No response

Before submitting

  • [X] I have read and followed the feature request guidelines.
  • [X] I have attached links to possibly related issues and discussions.

bojanbizjak avatar Mar 14 '24 10:03 bojanbizjak