Hi AppWrite team, I generated a file using uri, here is the code:
const fetchResponse = await fetch(asset.uri);
const blob = await fetchResponse.blob();
const file = new File([blob], asset.fileName, { type: asset.type });
then upload the file using createFile method:
const response = await storage.createFile(
bucketMap.get(bucketName),
ID.unique(),
file,
);
the file is uploaded, how ever, it is empty, see first image.
I checked the request in AppWrite SDK , and found this, see image2. I'm not familiar with request format but it seems to be fine and the file is included in the request.
Can you please help to resolve the issue? Also let me know if you need additional information.
Related unresolved question: https://appwrite.io/threads/1268920149365231768.
React native app: AppWrite storage uploaded file is empty
Recommended threads
- Websocket error Realtime
Hi peeps, I am trying to create realtime updates and I am having websocket error Code is below this msg
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- React Native/iOS platform integrations h...
Anyone else have this issue where platform identifiers have been lost/wiped and no option/field available to update them in the console?