Skip to content

Can't pick .iso files on web #1900

@RickyDane

Description

@RickyDane

Describe the bug

If I pick a .iso file, the 'bytes' and the 'xFiles' return null, but the name and the extension is correctly recognized.

Platform

  • Android
  • iOS
  • Web
  • Desktop

Platform OS version

macOS Tahoe
Version 26.1 Beta (25B5057f)

Google Chrome
Version 141.0.7390.76 (Official Build) (arm64)

How are you picking?

void chooseGameFile(BuildContext context) async {
  FilePickerResult? files = await FilePicker.platform.pickFiles(allowMultiple: true);
  if (files != null && context.mounted) {
    if (files.files.single.bytes == null) return;
    context.read<GameDetailCubit>().updateGameFile(files.files.single.name, files.files.single.bytes!);
  }
}

Details to reproduce the issue

Just pick a .iso file

Screenshots and/or video

Image

Flutter Version details

[✓] Flutter (Channel stable, 3.35.4, on macOS 26.1 25B5057f darwin-arm64, locale en-US) [615ms]
• Flutter version 3.35.4 on channel stable at /Users/#username#/Packages/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d693b4b9db (4 weeks ago), 2025-09-16 14:27:41 +0000
• Engine revision c298091351
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,167ms]
• Android SDK at /Users/#username#/Library/Android/sdk
• Emulator version 34.2.15.0 (build_id 11906825) (CL:N/A)
✗ cmdline-tools component is missing.
Try installing or updating Android Studio.
Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the ANDROID_HOME environment variable.
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/to/macos-android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 26.0.1) [2.1s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17A400
! CocoaPods 1.15.2 out of date (1.16.2 is recommended).
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

[✓] Chrome - develop for the web [12ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1) [11ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] Connected device (2 available) [6.2s]
• macOS (desktop) • macos • darwin-arm64 • macOS 26.1 25B5057f darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 141.0.7390.76
! Error: Browsing on the local area network for iPhone of #name#. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [1,451ms]
• All expected network resources are available.

Additional context
I already tried to add FileType.any, FileType.custom, allowMultiple: false, allowedExtensions: ".iso" but nothing of that helps. Other files like .dmg work but I can't be sure if there aren't other files that doesn't work as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new issueAn issue that hasn't yet been seen from the maintainer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions