Web Development · Jul 22, 2025
CR
Clément Rigo · @mydnic
IT Business Artisan & Consultant CTO
Laravel Filament's Media Library plugin use Livewire's upload file javascript to send your file to your cloud disk.
When using Cloudflare R2, you will probably get a CORS error and the upload will get canceled.
In your R2 bucket settings, make sure you update the CORS settings like this :
[
{
"AllowedOrigins": [
"https://yourdomain.com"
],
"AllowedMethods": [
"GET",
"POST",
"PUT"
],
"AllowedHeaders": [
"*"
]
}
]
Save and retry :)
CR
Clément Rigo
IT Business Artisan & Consultant CTO. I've been writing this blog since 2010.
Personal
The Fastest Path to a $50K/Month DTC Brand
Joe Speiser built Petflow, a subscription pet food brand, into a $70M business. He later shared the exact playbook he'd follow if he had to start over and get to $50K/month as fast as possible. Here's that playbook, distilled. The plan comes down...
Web Development
mini-swe-agent: The 100 Line AI Agent That Solves GitHub Issues
I was scrolling through my GitHub stars looking for something to write about and stopped on this one again. mini-swe-agent is the kind of project I like: it takes something everyone assumes needs a huge framework (an AI coding agent) and does it i...
Personal · Web Development
How I Built An Automatic Highlight Clipper For Battlefield 6 (Python, OpenCV, FFmpeg)
I record every Battlefield 6 session with NVIDIA's ShadowPlay, because who doesn't want to relive that one clutch double kill at 2am? The problem is that "recording everything" very quickly turns into a graveyard of 4K DVR files nobody wil...

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.