Using output: ImageFormat.webp on file preview causes a crash
i thought you brought this up before already 🧐
This is the code
bucketId: e.bucketId,
fileId: e.fileId,
height: e.height?.toInt(),
width: e.width?.toInt(),
output: ImageFormat.webp,
quality: 75,
);```
this is the stacktrace
```I/flutter (11114): type 'ImageFormat' is not a subtype of type 'Iterable<dynamic>'
I/flutter (11114): #0 _Uri._makeQueryFromParametersDefault.<anonymous closure> (dart:core/uri.dart:2382:18)
I/flutter (11114): #1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633:13)
I/flutter (11114): #2 _Uri._makeQueryFromParametersDefault (dart:core/uri.dart:2378:21)
I/flutter (11114): #3 _Uri._makeQueryFromParameters (dart:core-patch/uri_patch.dart:85:12)
I/flutter (11114): #4 _Uri._makeQuery (dart:core/uri.dart:2353:12)
I/flutter (11114): #5 new _Uri (dart:core/uri.dart:1654:13)
I/flutter (11114): #6 ClientMixin.prepareRequest (package:appwrite/src/client_mixin.dart:52:13)
I/flutter (11114): #7 ClientIO.call (package:appwrite/src/client_io.dart:370:32)
I/flutter (11114): #8 Storage.getFilePreview (package:appwrite/services/storage.dart:217:30)```
No that's different
this is broken because of the new enums
the api request doesn't even get sent
ahh i see
would you please create an issue for this?
Recommended threads
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...