[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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)