So , have a bucket in which store media then from that I want to store those media into database. storing things in database is working bu don't know why nothing is adding in the databae can someone help
whats the error? and what do you mean by - I want to store those media into database. Are you trying to save the media file itself or some info. about it?
I think he want to store the link of the file
hope you are following the jsmastery video . so in the code you are trying to store the whole thumbnail and video onto database , but what you should save is the url of that item. so in the upload file instead of returning the whole result do this const fileUrl = await getFilePreview(uploadedFile.$id, type); return fileUrl; this returns the url of the file uploaded
for better reference https://github.com/adrianhajdin/aora/blob/main/lib/appwrite.js line 122
Recommended threads
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.
- Can you suppress row $meta data?
When using listRows with a 'select' query to limit the response [for performance], I'm still getting extra columns (eg. `$id`, `$sequence`, `$createdAt`, `$upda...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...