Similarly, attempting to stick with the files property, and accessing the converter PlatformFile.xFile also crashes like above.
By comparison, on MacOS (native), the xFiles properties are accessible. Also, using withData: true works on both platforms (web & other).
I intend to pass the xFile objects to other code which will handle opening/reading the files (sometimes large!) so do not want the data pre-read. Is there a workaround or fix known for this?
Details to reproduce the issue
Provide all the details to reproduce the issue.
Error Log
Please, post the full console log of your issue, if applicable.
Screenshots and/or video
If applicable, add screenshots or video to help explain your problem.
Flutter Version details
flutter doctor -v
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-GB)
• Flutter version 3.22.2 on channel stable at /Users/richard/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (5 weeks ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.91.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.92.0
[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.127
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 2 categories.
Describe the bug After selecting file(s) on web, any access to the xFiles property of the result results in:
Similarly, attempting to stick with the
files
property, and accessing the converterPlatformFile.xFile
also crashes like above.By comparison, on MacOS (native), the
xFiles
properties are accessible. Also, usingwithData: true
works on both platforms (web & other).I intend to pass the xFile objects to other code which will handle opening/reading the files (sometimes large!) so do not want the data pre-read. Is there a workaround or fix known for this?
Platform
Platform OS version Chrome, MacOS, latest
How are you picking?
Details to reproduce the issue Provide all the details to reproduce the issue.
Error Log Please, post the full console log of your issue, if applicable.
Screenshots and/or video If applicable, add screenshots or video to help explain your problem.
Flutter Version details