S3 Upload isn't working

Hi-
I'm trying to upload file to s3 using the s3 uploader and the fileInput component. I assume, I have provided all the necessary permissions. But still I'm getting error - 'Error uploading file'. When i tried with the FileInput component, its throwing an error saying Failed to construct 'URL': Invalid URL.

S3 resource:


IAM Policy:

CORD Configuration is ike

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "https://*.retool.com"
        ],
        "ExposeHeaders": []
    },
    {
        "AllowedHeaders": [],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

Can anyone help here

Thanks

@Jyothi You have uploaded a file in base64

Hi @ZeroCodez
Thanks for the response.
Yes i have uploaded a file in base64. Is it incorrect? If yes, please assist me with the correct procedure

Thanks!!

Can you share a screenshot of your S3 query?

s3 query for uploading
image

Hi @Jyothi,

Are you still currently facing this issue?