stream-chat-flutter
stream-chat-flutter copied to clipboard
Attachment Error : Unhandled Exception: FormatException: Illegal scheme character
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS, Android
What version are you using?
6.12.0
What happened?
Hello I have an error when i tried to add attachment file with special characteres (example : "Fichier éééé !!! Compte rendu - 2012112:11212.pdf")
Is there any way to rename the file or catch the error when add attachment fails ?
Steps to reproduce
Add an pdf attachment with name **Fichier éééé !!! Compte rendu - 2012112:11212.pdf** for example.
Supporting info to reproduce
No response
Relevant log output
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Illegal scheme character (at character 8)
Fichier éééé !!! Compte rendu - 2012112:11212.pdf
^
#0 _Uri._fail (dart:core/uri.dart:1738:5)
#1 _Uri._makeScheme (dart:core/uri.dart:2280:9)
#2 new _Uri.notSimple (dart:core/uri.dart:1600:18)
#3 Uri.parse (dart:core/uri.dart:1138:17)
#4 _Uri.resolve (dart:core/uri.dart:2698:27)
#5 StreamAttachmentHandler.saveAttachmentFile (package:stream_chat_flutter/src/attachment/handler/stream_attachment_handler_io.dart:144:10)
<asynchronous suspension>
#6 StreamAttachmentPickerController.addAttachment (package:stream_chat_flutter/src/message_input/attachment_picker/stream_attachment_picker.dart:81:26)
<asynchronous suspension>
#7 mobileAttachmentPickerBuilder.<anonymous closure>.<anonymous closure> (package:stream_chat_flutter/src/message_input/attachment_picker/stream_attachment_picker.dart:746:37)
<asynchronous suspension>
Flutter analyze output
No response
Flutter doctor output
✓] Flutter (Channel stable, 3.13.8, on macOS 14.4.1 23E224 darwin-arm64, locale fr-FR)
• Flutter version 3.13.8 on channel stable at /Users/nicolas/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 6c4930c4ac (6 months ago), 2023-10-18 10:57:55 -0500
• Engine revision 767d8c75e8
• Dart version 3.1.4
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/nicolas/Library/Android/sdk
• Platform android-34, build-tools 33.0.1
• ANDROID_HOME = /Users/nicolas/Library/Android/sdk
• Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.9+0)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• 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.88.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.87.20240402
[✓] VS Code (version 1.85.1)
• VS Code at /Users/nicolas/Visual Studio Code.app/Contents
• Flutter extension version 3.87.20240402
[✓] Connected device (3 available)
• iPhone SE (3rd generation) (mobile) • 4A1C96C4-392E-4AE3-868E-FAAE43B2BD39 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.122
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
This issue is stale because it has been open for 20 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.