spatie/livewire-filepond
Laravel Livewire component that integrates FilePond for modern, smooth file uploads. Drop in <x-filepond::upload wire:model="file" />, add the provided scripts, and handle temporary uploads seamlessly in your Livewire forms with minimal setup.
can:upload gates).<x-filepond::upload wire:model="files" />
wire:ignore, wire:change).rules="mimes:jpg,png|max:2048").wire:model binding to a model property.spatie/livewire-filepond to a stable version.chunked_uploads config in Filepond.Symfony\Component\HttpFoundation\File\UploadedFile handling with queues (e.g., handleUpload() in a job).logging channel or third-party tools).enctype="multipart/form-data" forms).- <form method="POST" enctype="multipart/form-data">
- <input type="file" name="avatar">
- </form>
+ <x-filepond::upload wire:model="avatar" />
wire:ignore for hybrid approaches (e.g., keep legacy forms for now).php artisan vendor:publish --tag="filepond-config") to customize:
process_file hook).composer.json constraints)..env.public function rules() { return ['file' => 'required|file|max:1024']; }).public $file;
public function store()
{
$this->validate(['file' => 'required|image']);
$this->file->store('uploads');
}
<x-filepond::upload>.max-file-size="3MB", allowed-file-types="image/*").config/filepond.php if adding new file types or storage backends.wire:change handlers if Livewire’s event system evolves.dd() or dump() for server-side issues (e.g., failed validations).wire:model binding and server logs.filepond.css or Tailwind.public function store()
{
$this->validate(['file' => 'required|max:10240']); // 10MB
UploadFileJob::dispatch($this->file);
}
maxUploads config to prevent server overload.telemetry or Prometheus.failed_jobs table forHow can I help you explore Laravel packages today?