this working
File ff = File("path/vid.mp4");
await ff.writeAsBytes(bytes);
// Upload file to Storage
final fileUpload = await _storage.createFile(
bucketId: _storageFileBucketId,
fileId: ID.unique(),
file: InputFile.fromPath(
path: ff.path,
filename: file.name,
),
);
- but when i upload from bytes final fileUpload = await _storage.createFile( bucketId: _storageFileBucketId, fileId: ID.unique(), file: InputFile.fromBytes( bytes: bytes, filename: file.name, ), );
it's uploaded file but file not working (it's no same byte size) Byte Size: 31539436
when uploaded _storage.getFileDownload(bucketId: _storageFileBucketId, fileId: fileUpload.$id).then((ss) { print("Size: ${ss.length}"); // Size: 31539429 });
Recommended threads
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this