Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Symfony Dropzone

Symfony Dropzone Laravel Package

sbyaute/symfony-dropzone

Symfony Dropzone integrates Dropzone.js drag-and-drop file uploads into Symfony applications, providing form types, upload endpoints, and configuration for validation, chunked uploads, and server-side file handling. It simplifies wiring Dropzone front-end components to Symfony controllers and servic...

View on GitHub
Deep Wiki
Context7

Symfony Form Type

Frequently asked questions about Symfony Dropzone
Is sbyaute/symfony-dropzone a Laravel package?
No. It is a Symfony bundle that wires Dropzone.js into Symfony's form component and ships a Twig form theme. Laravel does not use Symfony's Form component or Twig by default, so this package will not drop into a Laravel application without significant adaptation. If you are building on Laravel, look for a Blade or Livewire Dropzone integration instead.
How do I install sbyaute/symfony-dropzone in a Symfony project?
Install it with Composer using composer require sbyaute/symfony-dropzone, then register the bundle in config/bundles.php. You also need to import the bundled Twig form theme in your Twig configuration so the Dropzone markup renders on file inputs. Finally, make sure the Dropzone.js assets are loaded on the pages that use the form. Pin the version explicitly at 1.0.0 rather than floating on a caret constraint.
Does this package support Laravel 10 or Laravel 11?
There is no declared Laravel support in the package description, and the codebase is a Symfony bundle rather than a Laravel package. The TPM assessment in the release context evaluated the package class generically at the framework level and explicitly flagged that no composer.json or changelog claims had been verified. Treat any Laravel compatibility claim as unconfirmed until you review composer.json yourself.
Can I upload multiple files at once with the Dropzone form type?
Yes. The package advertises form type integration for both single and multiple file uploads, so you can bind a multiple Dropzone input to a Symfony form field. On the server side, handle the uploaded files in your controller with Symfony's UploadedFile API and validate each one. If you need a dynamic number of files, map the input to a CollectionType and process the array in your submit handler.
How do I configure accepted file types and maximum upload size?
The bundle exposes configurable options for accepted files, size limits, and the upload URL, which you set through the form type options or bundle configuration. Client-side limits only improve UX, so always mirror the same constraints with Symfony validation constraints on the server. That prevents users from bypassing the Dropzone restrictions by posting directly to your endpoint.
Do I need to write custom JavaScript to use this bundle?
No, that is the main selling point. The included Twig form theme initializes Dropzone on your file input with sensible default styling, so a standard file field becomes a drag-and-drop zone without hand-written JavaScript. You can still override the theme or pass extra options if you need custom behavior such as previews or callbacks.
Does the bundle support chunked uploads?
The package blurb mentions configuration for chunked uploads and server-side file handling, alongside the form type and Twig theme. However, the supplied 1.0.0 release notes are empty, so the exact chunking options and their server-side expectations cannot be verified from the artifacts provided. Confirm the chunk endpoint contract and whether your controller must reassemble parts before relying on it in production.
How should I test Dropzone uploads in a Symfony application?
Use Symfony's WebTestCase or KernelTestCase to post a fake UploadedFile to your upload endpoint and assert the response and stored file. Symfony's file fixture helpers let you simulate both single and multi-file submissions without a browser. The package's own test suite coverage is not documented in the provided material, so run it inside your application skeleton rather than trusting it in isolation.
What are the production risks of adopting this bundle at version 1.0.0?
The 1.0.0 release notes provided are empty, so there are no verifiable feature, breaking-change, or deprecation claims, and no documented upgrade policy. The maintainer model and release cadence are also unclear from the supplied context. Pin the version, review composer.json for PHP and Symfony version ranges, and instrument one low-risk upload workflow before rolling it out broadly.
What alternatives exist to symfony-dropzone for file uploads?
Symfony UX Dropzone is the first-party option for Dropzone.js integration, and it is worth comparing on maintenance and Symfony version support. For the upload and persistence layer, VichUploaderBundle and OneupUploaderBundle are common choices, and you can pair either with a custom Dropzone front end. If you are on Laravel, evaluate a dedicated Laravel upload package instead of adapting this Symfony bundle.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect