Open timoxd7 opened 5 months ago
Describe the bug Invoking saveFile() without filename or without bytes parameter will crash the app silently.
saveFile()
Platform
Platform OS version 17.5
How are you picking?
// Working: outputFile = await FilePicker.platform.saveFile( dialogTitle: 'Please select an output file:', fileName: 'file.txt', type: FileType.any, bytes: Uint8List(0), ); // Not working: outputFile = await FilePicker.platform.saveFile( dialogTitle: 'Please select an output file:', fileName: 'log.txt', type: FileType.any, ); outputFile = await FilePicker.platform.saveFile( dialogTitle: 'Please select an output file:', type: FileType.any, bytes: Uint8List(0), );
Details to reproduce the issue Use code provided above
Error Log None, will crash at FilePickerPlugin.m:181 if no file name is provided for example.
Flutter Version details [✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale de-DE) • Flutter version 3.22.1 on channel stable at /Users/timo/sdk/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision a14f74ff3a (13 days ago), 2024-05-22 11:08:21 -0500 • Engine revision 55eae6864b • Dart version 3.4.1 • DevTools version 2.34.3
Additional context file_picker version 8.0.3
i got the same issue on android
I got the same problem on an ios iPad.
I got the same on android. Using the "bytes: Uint8List(0)," workaround now.
Describe the bug Invoking
saveFile()
without filename or without bytes parameter will crash the app silently.Platform
Platform OS version 17.5
How are you picking?
Details to reproduce the issue Use code provided above
Error Log None, will crash at FilePickerPlugin.m:181 if no file name is provided for example.
Flutter Version details [✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale de-DE) • Flutter version 3.22.1 on channel stable at /Users/timo/sdk/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision a14f74ff3a (13 days ago), 2024-05-22 11:08:21 -0500 • Engine revision 55eae6864b • Dart version 3.4.1 • DevTools version 2.34.3
Additional context file_picker version 8.0.3