File upload ERR_CONNECTION_RESET when using Cloudflare R2 and Spatie Media Library plugin
When uploading larger files (videos), it happens often that the upload of the file is interrupted.
It just gets stuck at a random percentage.
For example I'm uploading a 50MB video, sometimes it stops at 13%, sometimes at 80%, it's random, but it never completes.
Smaller files and videos seem to work fine.
Not sure if that has anything to do with this, but I'm using Filament v4
Any help would be appreciated!

3 Replies
I am guessing it's a timeout isssue... possibly in your posting?
I don't think it's a timeout issue. Sometimes it stops after a couple of seconds, sometimes it goes to 100%, but then on saving I get the error.
I'm not sure, but I think this might be related to Cloudflare R2 not using ACL according to what I've read on the internet, but I'm not sure on how to fix that
I found this article which suggests adding this config:
Now it seems to reach 100% more consistently, but upon saving, I always get this error:
