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
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- 1.9.6 Console handles all array columns ...
When creating or updating a row in the appwrite 1.9.6 web console, the form treats all list columns as a type string. Even if the column is a list of booleans, ...
- Temporary $permissions hickup?
Hello, today at ~13:50 (CEST/UTC+2) our customers reported they couldn't see any data in our application. We checked and indeed, the application was working, bu...