meloflavio/multiple-file-upload-bundle
Meloflavio's MultipleFileUploadBundle is a PHP package that simplifies adding multiple-file upload support to web applications. It provides bundle-style integration for managing multi-file selection and upload handling, helping developers implement bulk file upload workflows with less boilerplate.
composer require <vendor>/<package> (check Packagist for exact name). Publish config and assets: php artisan vendor:publish --provider="<Vendor>\<Package>\<PackageServiceProvider>".image, max:2048, etc.) on the server.config/<package>.php. Check routes (php artisan route:list) and the default upload controller/request classes. For v1.3.1, the new click event is the quickest way to make the dropzone open a file picker on click; the pt_BR translation can be published/selected if you need Brazilian Portuguese UI strings.url, headers: { 'X-CSRF-TOKEN': ... }, and let the package handle the upload lifecycle. Use Laravel request validation and return JSON with the stored path/URL.paramName values or hidden inputs, and namespace event handlers. The v1.3.1 click event is useful when you want custom click behavior (e.g., trigger a modal or a separate file input) rather than the default Dropzone click-to-browse.addedfile, success, error, queuecomplete, and the new click event to update previews, progress bars, and form state. Keep server responses consistent ({ success, file: { url, name, size } }) so front-end handlers stay simple.pt_BR (or pass the locale to the JS initializer) to use the new Brazilian Portuguese strings. This is especially useful for multi-locale admin panels.Storage::disk('public')->putFile(...)), validate MIME/size, and optionally create model attachments in a transaction. For large files, use chunked uploads if the package supports them, or configure Dropzone’s chunking option and a matching chunk endpoint.Storage::fake() and UploadedFile::fake() in feature tests. For JS behavior, use Dusk or a lightweight browser test to confirm the new click event fires and the dropzone opens correctly.419 responses gracefully. Refresh the token on long-lived pages.autoDiscover can attach to elements unintentionally. Disable it globally and initialize only the containers you control, especially when using the package’s click event.preventDefault()/stop propagation carefully and test with keyboard accessibility in mind.pt_BR strings only apply after publishing/loading the translation files and setting the locale correctly. Clear config/view caches (php artisan optimize:clear) after publishing.acceptedFiles/maxFilesize are UX hints only. Always enforce MIME, size, and count rules server-side; return structured JSON errors so Dropzone can display them.php artisan config:cache. Route and event changes may require route:clear/event:clear during debugging.How can I help you explore Laravel packages today?