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
- Cannot use custom SMTP for messaging (SM...
Hey there! I'm on Appwrite Self-hosted 1.9.0. I've never used the messaging feature before, always sent emails through functions or a custom backend, but I'v...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...