How can we get the Object URL of the uploaded image to the Amazon s3

I have created a Retool dashboard that Is uploading the image to the amazon s3 bucket in a folder using retool GUI

I need to extract the Object URL of the image I have uploaded how can I do this

1 Like

same here, i cant grab url like when s3 upload component existed, now its deprecated

Hello @Akshat_Kaushik and @agaitan026, could you share a screenshot of the response of your S3 query? Feel free to hide any sensitive data. The Object URL should be part of the response, a success event handler may be the way. :slightly_smiling_face:

1 Like

in my case this is the output

Output

I did some testing it's possible to read and download a file from S3 if we use a file name when uploading.

For example, after running this upload with the name of 'export.csv':

The upload has both Etag and Key properties:

Although the response of the upload does not give us the Etag, it does give us the fileName:

We can use the fileName as a value for "S3 file key" to read or download the file:

For the object URL, we can use this data to get it as well.
An Object URL in S3 has the following structure:
http://${bucket_name}.s3.amazonaws.com/${key}

Replace ${bucket_name} with yours and ${key} with the fileName, that is the Object URL for that file. I just tested it on my end, I can go to that address and see the file on the browser.

1 Like

awesome works good

1 Like