Hi, I have a small problem here, I creating a ga...
# help
d
Hi, I have a small problem here, I creating a gallery in next js, and with supabase I will try it out with backend. In supabase I have a table called, GalleryTable, and in storage i have a bucket called gallery. In my bucket gallery I have folders and inside those folders I have some images. Could I somehow, when i upload a Image to storage from my website, connect that image and create a new row in the table GalleryTable, with a column called img, connect that image i uploaded to storage to that column img? My storage looks like And my table look like
n
Hello @Dembe! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
d
@garyaustin I mean like this, this is my strcutre in storage and table
g
I would just store the path name as the link to storage, you can also build a public url with that info when needed. If your bucket is the same for all of them, then just the path is fine, otherwise you would need to store the bucket also.