Document explaining in detail how to make a connection and upload files to supabase storage
- First we will create a new ahutentication API data source.
- Let's navigate to the supabase dashboard to get our credentials.
- Next in our url we will write it in this way
https://mritzxpfuqsbselcjefc.supabase.co/storage/v1/object/
- Now we will add our
apikey
- Let's add bearer token authentication.
- Now we add the bearer token
It is the same token as the apikey
Perfect with this we should already have our connection made successfully.
- We create a new bucket in supabase.
- We create a new query in our appsmith application.
-
We will add a new Filepicker widget.
-
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}}
-
Then we will add this header.
-
We will put the API method as post.
- And finally we will add the information that we are going to load in the body in this way.
- And ready now to test if it works, let's select a file with the file picker and execute the query.