[firebase_storage] putNetwork alt putStream for uploading bigger files on Web #5755
Unanswered
MrAlek
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the only stream-based API for uploading files is
putFile
, which only works with local files and thus not on the web platform because reasons.All other APIs (
putBlob
,putData
,putString
) require to load the file contents in-memory first which is inefficient and impractical for bigger files such as videos which can be multiple gigabytes.To have complete web support we need a new API which can handle reading remote file URLs. This could either be a specific
putNetwork
/putURL
, or (even better) a genericputStream
which could easily work for local files, remote URLs and more complex situations such as piping live-recorded video straight to Firebase Storage.Beta Was this translation helpful? Give feedback.
All reactions