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
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Appwrite cloud DB server error 500
Getting this error