Hi i have a long time problem. I create the files (images) into bucket, img is sent from client -> server, where is saved. But problem is that i cant set the type of file i am saving. It always saves it like plain/text (so it is Base64 in text).
I send 2imgs - code - result in cloud
are you passing in base64 encoded text?
yes i am
well then it's plain/text...if you want it to be picked up as an image, it needs to be in image
So i assume if you base64 decode it, you'll have the actual image bytes? store that instead
could you please help me how to do it?
I solved it, thank you for everything. (i used node-base64-image)
[SOLVED] set the file type in bucket
Recommended threads
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...