fileButton Error: Failed to Fetch

Hi, I have build a simple file viewer and uploader following this tutorial: File uploader + viewer tutorial with Retool and DigitalOcean Spaces

The viewer is working well, however the uploader isn't. I have this setup:

But I am just getting this error which doesn't help:

What is the issue? I am trying to upload a .jpg and CORS is setup correctly as well:

I was able to solve the issue.

If someone else has the same issue, you need to go into your CORS settings on Digital Ocean and additionally click "+ add Header" and enter * as wildcard.

Rupur, thanks so much for posting your fix. Just what the DR Ordered.