New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlatformException on web #1343
Comments
I've had the same issue |
issue for me appears on final web build however if you run it as debug or release issue does not appear. |
This issue is stale because it has been open for 14 days with no activity. |
still have this issue |
Try |
This issue is stale because it has been open for 14 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
This is a valid issue, since the plugin currently does not set up the platform implementations correctly. I plan on addressing this soon, by migrating the plugin to use |
Did you find any solution? I'm facing the same issue. It works well in dev mode but not once it is published. |
There is a workaround using That will not be necessary once I am done with my refactor, though. |
oh just use
instead of
|
The documentation says "You are good to go as long as you are on Flutter 2.0 or above." for web. The entire pub.dev page doesn't say anything about FilePickerWeb. The repo example file also just uses a kIsWeb in one spot. So clearly the documentation needs to be updated. |
@yogithesymbian This works but then I can't build app on other platforms than Web, any thoughts? @miguelpruivo Thank you for your hard work. Should we expect this plugin to be updated to work with newest Flutter 3.19 and consequent versions which are gonna drop use of dart:html because of WASM? |
@jan-siroky We can indeed start on migrating to However, I would like to fix the underlying issue that is made apparent by this bug ticket. We should have a single |
This should be mentioned in the docs, at least until the underlying issue is fixed. |
This issue is stale because it has been open for 7 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
This issue is stale because it has been open for 7 days with no activity. |
I'm using file_picker: ^5.3.3
Describe the bug
When trying to call await FilePicker.platform.pickFiles() even with type: FileType.any , I get no trouble on dev with flutter, but when going live on production server , now I get PlatformException error only on WEB
my code is simple :
try {
result = await FilePicker.platform.pickFiles(type: FileType.any);
} on PlatformException catch (e) {
print('Unsupported operation' + e.toString());
} catch (e) {
print(e.toString());
}
Error Log
Platform._operatingSystem
Nothing happens when trying to pick files
works well on Android and IOS
anyone found this isse too ?
thanks
The text was updated successfully, but these errors were encountered: