http icon indicating copy to clipboard operation
http copied to clipboard

InternalError: Expression evaluation in async frames is not supported. No frame with index 30..

Open devmarwat opened this issue 2 years ago • 2 comments

Facing the above issue when uploading an image to the server.

devmarwat avatar Jun 14 '23 14:06 devmarwat

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())); }`

devmarwat avatar Jun 14 '23 14:06 devmarwat

Running my app with Chrome on the web.

devmarwat avatar Jun 14 '23 14:06 devmarwat