Templates Plugins Courses

AWS File Uploader


#1

Ok so turns out the ‘Server returned 0 code’ error was caused by not specifying a file type in the Bubble dialog box for the File Upload panel. Oops. That part is resolved.

Now I have another issue.

I can upload files to my S3 bucket, but the first file I upload always results in a 403 (Forbidden) error from Amazon. Any file which is uploaded after the first (on the same page without a refresh) does not have this issue. What could this be caused by?


#2

Hi @dylang

Maybe some rules which require CORS modifications for you. Try adding to CORS Rule:

<ExposeHeader>ETag</ExposeHeader>
<AllowedHeader>*</AllowedHeader>

Also more info regarding AWS which can help: https://blog.fineuploader.com/fine-uploader-s3-upload-directly-to-amazon-s3-from-your-browser-3d9dcdcc0f33
See the configuration of you bucket and try adjusting accordingly.
Hope this helps.

KR,
Dumitru.


#3

also, if it doesn’t help please make a screenshot of the “network” tab from the console when making an unsuccessful call.
The screenshot should look like this:


thanks!


#4

I’m having the same 0 code error, could you please elaborate by what you mean by specifying file type? I thought the File Upload element automatically inferred that?


#5

where did you see this?


#6

In @dylang initial comment.