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
Please add basic implementation for saveAs method on the web platform.
It could be the same call to FileSaverWeb.downloadFile(fileModel) as in the saveFile method.
On a side note, I wonder what are the benefits of using JS classes to assemble the data url string?
You could do it directly in Dart like Uri.dataFromBytes(fileModel.bytes, mimeType: fileModel.mimeType).toString().toJS
Please add basic implementation for
saveAs
method on the web platform.It could be the same call to
FileSaverWeb.downloadFile(fileModel)
as in thesaveFile
method.On a side note, I wonder what are the benefits of using JS classes to assemble the data url string?
You could do it directly in Dart like
Uri.dataFromBytes(fileModel.bytes, mimeType: fileModel.mimeType).toString().toJS
file_saver/lib/file_saver_web.dart
Lines 44 to 49 in 8126b49
The text was updated successfully, but these errors were encountered: