Storage needs dart:html File support for Flutter Web #8034
Unanswered
Aurangseb
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.
-
As you might know, uploading to Firestore is simple... if you have direct file access.
The Web-Platform does not allow the regular File object for reading, but uses Dart:HTML File instead because of security reasons.
Now here is the problem:
putFile is missing dart:html File support
While the JS Web SDK for Firebase Storage supports uploading from JS File objects, the FlutterFire-Version does not support uploading the equivalent dart:html file type.
There is no method that accepts a dart:html file object for putFile.
Uploading via memory is not an option
Therefore the only way right now is to load the file into memory before uploading it to Storage. Which is obviously not a good idea for large files.
Conclusion
We really need putHtmlFile or something similar.
Beta Was this translation helpful? Give feedback.
All reactions