[SOLVED] Sveltekit FileDropzone from '@skeletonlabs/skeleton' image upload to appwrite.
- 0
- Web
- Storage
Has anyone used this component, https://www.skeleton.dev/components/file-dropzone and combined it with Appwrite? I can't seem to be able to get it working.
after dragging image to the component, i can get let files: FileList; files[0].name, but that doesn't give me much.. Don't understand how to get the path so i can upload the file..
Have you tried passing the file to the create function?
Yes that worked, js
uploadArticleImage: async (file: any) => {
return await storage.createFile('images', ID.unique(), file);
},
[SOLVED] Sveltekit FileDropzone from '@skeletonlabs/skeleton' image upload to appwrite.
Recommended threads
- Re-connect site to domain verification f...
I have mistakenly deleted appwrite site without removing domain. Now I created same site and want to re-connect my domain. It gives this error while verify. How...
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...
- Custom Domains with Cloudflare for SaaS ...
Hi! I'm using Appwrite Cloud Sites with Cloudflare for SaaS for multi-tenant custom domains. Problem: Custom domain: donate.pekeetong.my → CNAME to sites.dono...