'''onProgress: (UploadProgress progress) { print(progress.toString() +"Progress"); }, );'''
storage.createFile( bucketId: 'bucketid', fileId: ID.unique(), file: InputFile.fromPath(path: filePath, filename: fileName), onProgress: (UploadProgress progress) { print(progress.toString() +"Progress"); }, );
don't use progress.toString(). access the fields individually
it's usually a bad idea to do toString() because objects may not serialize to string like you expect
ok
Recommended threads
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Problem with getting rows from related t...
Hi, I migrated the Appwrite SDK to 1.8.0 and the package in my Flutter app to version ^20.3.2. I noticed one thing is different. Previously, when I got a JSON r...
- client.ping() does not appear to work.
After upgrading to 1.8.0, I ran the `starter_for_flutter` and tested the ping. It failed with a "Server Error". I tried this again on my production instance (1...