Skip to content

Document explaining in detail how to make a connection and upload files to supabase storage

Notifications You must be signed in to change notification settings

AbdulIndia/How-to-connect-supabase-storage-appsmith

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

How-to-connect-supabase-storage-appsmith

Document explaining in detail how to make a connection and upload files to supabase storage

  1. First we will create a new ahutentication API data source. image
  2. Let's navigate to the supabase dashboard to get our credentials.

image

  1. Next in our url we will write it in this way

https://mritzxpfuqsbselcjefc.supabase.co/storage/v1/object/

image

  1. Now we will add our apikey

image

  1. Let's add bearer token authentication.

image

  1. Now we add the bearer token It is the same token as the apikey

image

Perfect with this we should already have our connection made successfully.

How to upload files to supabase

  1. We create a new bucket in supabase.

image

  1. We create a new query in our appsmith application.

image

  1. We will add a new Filepicker widget.

    image

  2. In the query created, we will add the name of our bucket and the file name to be created we will extract it from the filepicker.

    appsmith/{{FilePicker1.files[0].name}}

image

  1. Then we will add this header.

    • key content-type value application/json

      image

  2. We will put the API method as post.

image

  1. And finally we will add the information that we are going to load in the body in this way.

image

  1. And ready now to test if it works, let's select a file with the file picker and execute the query.

image

About

Document explaining in detail how to make a connection and upload files to supabase storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published