Pre-Signed URLs
Learn how to generate and use Pre-signed URLs with Filebase.
Using AWS CLI to generate a pre-signed S3 URL
Using Python and Boto3 to generate a pre-signed S3 URL
1. Edit the code below to include your Filebase access key and secret key, then save the code as a .py file.
2. In a terminal window, navigate to the directory where you saved the .py folder. Execute the python script.
3. Enter your bucket name and desired object name to upload.
4. The terminal will return a pre-signed URL as seen below. Copy this URL to your clipboard.

5. From the terminal, use the following curl command to upload any file to Filebase using the pre-signed URL:

6. Confirm that the file has been uploaded by checking the Filebase web console for your bucket.

Last updated