Templates Plugins Courses

AWS File Uploader

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?

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.

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!

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?

where did you see this?

In @dylang initial comment.

Hi there I am in need of some help. My uploader was working fine for 12 months of development. Now on day one of going live I get this error when trying to deliver photos to a client.

I can invite you as a collab

Hi @jeffmccutcheon,

Thanks for reaching out. Unfortunately, this error is not reproducing on our side. Could you please go through our docs again just to make sure everything is configured properly.

If you still have this problem in Live, please share a bit more details like screenshots and/or screencast of your app and plugin setups, with exact steps to reproduce this problem so we can try it on our side. Also, it would help a lot to see your console logs for this error message, as well as browser and OS version you are using to develop the app. This way we can have a better troubleshooting then provide working solutions asap.

Best,
Alex