[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
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...