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
Currently, if the metadata attribute filenameisn't set meta["filename"] = p.basename(file.path) is used defaulty.
This doesn't work with XFile in Flutter Web. Quote from the XFileBase class: Accessing the data contained in the picked file by its path is platform-dependant (and won't work on web). Therefore, I propose to use XFile.name instead.
Currently, if the metadata attribute
filename
isn't setmeta["filename"] = p.basename(file.path)
is used defaulty.This doesn't work with XFile in Flutter Web. Quote from the XFileBase class: Accessing the data contained in the picked file by its path is platform-dependant (and won't work on web). Therefore, I propose to use
XFile.name
instead.It's not a big issue because one can simply use:
but it would be more intuitive when also building for web.
The text was updated successfully, but these errors were encountered: