glavweb / uploader-dropzone-bundle
There is no license information available for the latest version (v3.1.0) of this package.
Symfony GlavwebUploaderDropzoneBundle
Package info
github.com/glavweb/GlavwebUploaderDropzoneBundle
Language:JavaScript
pkg:composer/glavweb/uploader-dropzone-bundle
v3.1.0
2026-09-03 21:31 UTC
Requires
- php: >=8.4
- glavweb/uploader-bundle: ^4.0
- symfony/form: ^8.0
- symfony/http-foundation: ^8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Get the bundle using composer
Add GlavwebDropzoneBundle by running this command from the terminal at the root of your Symfony project:
php composer.phar require glavweb/uploader-dropzone-bundle
Enable the bundle
To start using the bundle, register the bundle in your application's kernel class:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Glavweb\UploaderDropzoneBundle\GlavwebUploaderDropzoneBundle(), // ... ); }
To add resources to a twig configuration.
twig:
...
form_themes:
- '@GlavwebUploaderDropzone/Form/fields.html.twig'
To add resources to a twig layout
{% block javascripts %}
...
<script
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"></script>
<script src="{{ asset('bundles/glavwebuploaderdropzone/splashscreen/jquery.splashscreen.js') }}"></script>
<script src="{{ asset('bundles/glavwebuploaderdropzone/dropzone.js') }}"></script>
<script src="{{ asset('bundles/glavwebuploaderdropzone/Sortable.js') }}"></script>
<script src="{{ asset('bundles/glavwebuploaderdropzone/cropper/cropper.min.js') }}"></script>
<script src="{{ asset('bundles/glavwebuploaderdropzone/jquery.dropzone_uploader.js') }}"></script>
<script src="{{ asset('bundles/glavwebuploaderdropzone/fields.js') }}"></script>
...
{% endblock %}
{% block stylesheets %}
...
<link href="{{ asset('bundles/glavwebuploaderdropzone/splashscreen/splashscreen.css') }}" rel="stylesheet">
<link href="{{ asset('bundles/glavwebuploaderdropzone/cropper/cropper.min.css') }}" rel="stylesheet">
<link href="{{ asset('bundles/glavwebuploaderdropzone/fields.css') }}" rel="stylesheet">
...
{% endblock %}
Execute "assets:install".
php app/console assets:install
for Symfony3:
php bin/console assets:install
Basic Usage.
You can create form, as this:
use Glavweb\UploaderDropzoneBundle\Form\ImageCollectionType;
use Glavweb\UploaderDropzoneBundle\Form\ImageType;
use Glavweb\UploaderDropzoneBundle\Form\VideoCollectionType;
use Glavweb\UploaderDropzoneBundle\Form\VideoType;
$form = $this->createFormBuilder($product)
->add('name', null, ['label' => 'name'])
->add('titleImage', ImageType::class, [
'label' => 'Image',
'context' => 'image',
'thumbnail_filter' => 'image'
])
->add('imageGalleryItems', ImageCollectionType::class, [
'label' => 'Image Gallery',
'context' => 'image_gallery',
'thumbnail_filter' => 'image_gallery'
])
->add('titleVideo', VideoType::class, [
'label' => 'Video',
'context' => 'video',
'thumbnail_filter' => 'video'
])
->add('videoGalleryItems', VideoCollectionType::class, [
'label' => 'Video Gallery',
'context' => 'video',
'thumbnail_filter' => 'video_gallery'
])
->getForm();