G4brym / R2-Explorer

A Google Drive Interface for your Cloudflare R2 Buckets!
https://r2explorer.dev
MIT License
304 stars 52 forks source link

Dashboard V2 - Not able to upload image or pdf files #61

Closed IgnacioKaplan closed 4 months ago

IgnacioKaplan commented 4 months ago

Hello, and first of all, thank you for this wonderful project.

I'm having the same issue with the uploads (tested with upload and drag&drop). I'm having trouble uploading PDFs. I have tested a few of them with different sizes, 20Kb, 500Kb, 3Mb, 5Mb and no luck.

When I do the same operation from the Cloudflare R2 console, I have no issue uploading any size PDF.

I have tested with a txt, mp4, rpm, csv and with no issues.

When doing further testing, I noticed the same problem with bmp, jpg, and png files. And in all these cases, when uploading from the Cloudflare R2 console, there is no problem.

Many thanks, Ignacio

IgnacioKaplan commented 4 months ago

This has been resolved now. It was related to a Cloudflare WAF-managed rule for the domain setup with the R2 service. It was observed a 403 answer when attempting to upload the mentioned kind of files.

The Cloudflare (previous version)-managed rule stopping it was: "OWASP Block (981176)"