F
Filament3mo ago
Azorky

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!
No description
3 Replies
toeknee
toeknee3mo ago
I am guessing it's a timeout isssue... possibly in your posting?
Azorky
AzorkyOP3mo ago
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
Azorky
AzorkyOP3mo ago
I found this article which suggests adding this config:
'options' => [
'ACL' => ''
]
'options' => [
'ACL' => ''
]
Now it seems to reach 100% more consistently, but upon saving, I always get this error:
No description

Did you find this page helpful?