http
http copied to clipboard
InternalError: Expression evaluation in async frames is not supported. No frame with index 30..
Facing the above issue when uploading an image to the server.
The error is coming from browser client.dart file This is the code which makes issue `FilePickerResult? result; _pickImage() async { result = await FilePicker.platform.pickFiles( type: FileType.image, ); if (result != null) { uploadImage(); } }
uploadImage() async { Storage storage = Storage(client); await storage.createFile( bucketId: "images", fileId: ID.unique(), file: InputFile.fromBytes( bytes: result!.files.first.bytes!, filename: ID.unique())); }`
Running my app with Chrome on the web.