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
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...
- [SOLVED] Production down - createExecuti...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...
- 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 ...