anybody have experience with s3.filebase.com instead of s3.amazonaws.com for getting a presigned url with that simple_s3_upload.ex
that Chris McCord made? I’m getting a failure with the same settings that works with amazonaws but not filebase.com:
meta: %{
fields: %{
"acl" => "public-read",
"content-type" => "image/jpeg",
"key" => "input/280ba797-2c40-4d2e-bf64-597208d459c0.jpg",
"policy" => "ewogICJleHBpcmF0aW9uIjogIjIwMjItMDctMTlUMTc6MzQ6NDUuNjU4OTYyWiIsCiAgImNvbmRpdGlvbnMiOiBbCiAgICB7ImJ1Y2tldCI6ICAiaGFyZHNheWluZ3MtbWFpbiJ9LAogICAgWyJlcSIsICIka2V5IiwgImlucHV0LzI4MGJhNzk3LTJjNDAtNGQyZS1iZjY0LTU5NzIwOGQ0NTljMC5qcGciXSwKICAgIHsiYWNsIjogInB1YmxpYy1yZWFkIn0sCiAgICBbImVxIiwgIiRDb250ZW50LVR5cGUiLCAiaW1hZ2UvanBlZyJdLAogICAgWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDUwMDAwMDAwMF0sCiAgICB7IngtYW16LXNlcnZlci1zaWRlLWVuY3J5cHRpb24iOiAiQUVTMjU2In0sCiAgICB7IngtYW16LWNyZWRlbnRpYWwiOiAiMjFERTc1QTgwNkJDNjkxQzk2RTYvMjAyMjA3MTkvdXMtZWFzdC0xL3MzL2F3czRfcmVxdWVzdCJ9LAogICAgeyJ4LWFtei1hbGdvcml0aG0iOiAiQVdTNC1ITUFDLVNIQTI1NiJ9LAogICAgeyJ4LWFtei1kYXRlIjogIjIwMjIwNzE5VDE3MzQ0NVoifQogIF0KfQo=",
"x-amz-algorithm" => "AWS4-HMAC-SHA256",
"x-amz-credential" => "21DE75A806BC691C96E6/20220719/us-east-1/s3/aws4_request",
"x-amz-date" => "20220719T173445Z",
"x-amz-server-side-encryption" => "AES256",
"x-amz-signature" => "347e5a0c7b8e780ef449288102f0f7c341369ceb486863b829052501be3a4a8c"
},
key: "input/280ba797-2c40-4d2e-bf64-597208d459c0.jpg",
uploader: "S3",
url: "//my-cool-bucket-main.s3.filebase.com"
}
I’ve confirmed the folder input
exists
"key" => "input/280ba797-2c40-4d2e-bf64-597208d459c0.jpg",
I also tried re-arranging the bucket to the end of the url so that it renders like this:
url: "//s3.filebase.com/my-cool-bucket-main"
but this returns with “Exteral client failure” still.
This is the simple_s3_uploader.ex
I’m using: