Platform request: web support
As I could see from the pub description, flutter web is currently not supported.
Nevertheless, it would be great to support also web :smile:
Looking forward for your take on it.
How would you handle the upload in the background on web, using a web worker or similar?
How would you handle the upload in the background on web, using a web worker or similar?
Yeah, a web worker with an asynchronous upload using the web File API sounds good :+1:
@daniel-vera-g can you start collecting links / demos or sample code even for this ticket? There is more work to be done before this can start (e.g. unified plugin transition, iOS fixes) and the transfer to flutter community as a whole.
@daniel-vera-g can you start collecting links / demos or sample code even for this ticket? There is more work to be done before this can start (e.g. unified plugin transition, iOS fixes) and the transfer to flutter community as a whole.
Well, regarding the File upload itself:
- File Dart API: https://api.dart.dev/stable/2.9.3/dart-html/File-class.html
- Example js upload process: https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
Regarding web workers, MDN also has good documentation:
- https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers
- https://developer.mozilla.org/en-US/docs/Archive/Using_workers_in_extensions