[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
- Bug in relational table
I potential found a bug or is there something I am missing? I created 2 tables. User and Coins User has a one to one relation to Coins When attempting to cre...
- Server API Key
Hi, I have a self-hosted Appwrite instance and I can’t quite figure out how to create a server-side API that lets me automate the creation of projects. The only...
- Locked out of account
Hey guys, I have a paid account and have been locked out. Apologies for using this method, but I'm getting no response via the contact us page. I had a old do...