In this intro episode, we kick things off by talking about the big problem with uploading large files in Livewire – traditional uploads just don't cut it when your files are massive, and changing server settings isn't always practical. Instead, we're going to build a chunked uploader with Livewire! This means uploads can be paused, resumed, and even cancelled, making things way more user-friendly and robust.
You'll see a quick demo where we upload a big file, pause and resume the upload, and play around with cancelling uploads. There's a funny little bug with progress showing 100% at the wrong time, but don't worry, we're going to fix that as we go.
We also talk through some of the technical challenges: Livewire isn't really built for tons of upload requests (which is what happens when you chunk files), so we'll need to be smart about how we handle Livewire reactivity. Plus, we're leaning on a great JavaScript package to do most of the chunking work in the browser, but there's a little tweaking needed to make everything play nicely with Livewire.
The best part? The upload component we're making is reusable and flexible! Once you finish the course, you'll be able to quickly slap it onto any model or part of your app and add your own custom actions for when uploads finish—super handy for all sorts of use cases.
Alright, that's the plan for the series. Let's dive in and start building our chunked uploader from scratch!