Unable to upload image to R2 via workers
Hey folks
I am unable to upload an image to my R2 bucket with custom domain endpoints, using my workers api.
Here is my code. When executed, there is no error. And the web based dashboard doesn't shows the image in the bucket.
in my wrangler.toml file, I have bound the R2 details as
Since I am uploading from my workers api and not from a browser POST, I do not think I need to set anything like an AUTH_SECRET, or do I? I have also tried with and without CORS in the bucket settinsg without any success.
I am unable to upload an image to my R2 bucket with custom domain endpoints, using my workers api.
Here is my code. When executed, there is no error. And the web based dashboard doesn't shows the image in the bucket.
in my wrangler.toml file, I have bound the R2 details as
Since I am uploading from my workers api and not from a browser POST, I do not think I need to set anything like an AUTH_SECRET, or do I? I have also tried with and without CORS in the bucket settinsg without any success.