I had the same doubt regarding image upload. Can anyone share any GitHub repo to understand as an example. Or any code snippets. Thanks
the approach is to make appwrite function and then trigger image creation and storing metadata in collection
HTML: https://github.com/Meldiron/authui/blob/main/src/lib/form.svelte#L404-L409 JS: https://github.com/Meldiron/authui/blob/main/src/lib/form.svelte#L144-L164
From demo app: https://www.authui.site/ (where you can upload your company logo to have branded page)
thanks @Meldiron for building this
Aaand here is how it "links" to collection: https://github.com/Meldiron/authui/blob/main/src/lib/form.svelte#L97-L103
You simply have string attribute and store file's ID there. You get file ID after creating file.
Later you can use this fileId to render image, like this: https://github.com/Meldiron/authui/blob/main/src/lib/modal.svelte#L129-L134
thanks jyoti
but do you have any code in react š„²
ah i dont think so
maybe this gives you an idea ?
You'll need to get the file and then pass it to the function.
Understood
Thanks @Steven @joeyouss
[SOLVED] Examples for Image Uploading using Appwrite Function
Recommended threads
- How connect an existing sveltekit projec...
The docs are splitte with two different versions... ### [Oficial Docs](https://appwrite.io/docs/quick-starts/sveltekit): **1. Create project** **2. Create Sve...
- Type 'Theme' does not satisfy the constr...
Type 'Theme' does not satisfy the constraint 'Row'. Type 'Theme' is missing the following properties from type 'Row': $id, $sequence, $tableId, $databaseId, a...
- Custom Domain TLS Error (perfinso.com)
Hey Appwrite team/community, I need urgent help with a custom domain setup! I've added perfinso.com to my project, pointed the nameservers, and verification is...