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
- Cannot read properties of undefined (rea...
I am trying to upload image to Appwrite but getting above mentioned error ```js import { ID } from "appwrite"; import storage from "./storage.js"; const addA...
- AppwriteException: general_resource_bloc...
I can't access the database from my app or the Appwrite console dashboard. It's saying, '401 Access to this resource is blocked.'
- Error in signin user:AppwriteException: ...
How to stop active sesssion through web.