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
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...
- Student plan issue
I am using GitHub student plan, I even got access to appwrite's mock phone number. but when I try to use it, it says the phone number limit has reached
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...