Skip to content

Commit 59c6d3b

Browse files
committed
fixup! feat(dropzone): enable multiple file uploads
1 parent d9e0b2f commit 59c6d3b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Dropzone/Resources/views/form_theme.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55

66
<div class="dropzone-container" data-controller="{{ dataController }}">
7-
<input type="file" {{ block('widget_attributes') }} data-symfony--ux-dropzone--dropzone-target="input"
8-
{%- if attr.multiple -%}multiple{% endif%} />
7+
<input type="file" {{ block('widget_attributes') }} data-symfony--ux-dropzone--dropzone-target="input">
98

109
<div class="dropzone-placeholder" data-symfony--ux-dropzone--dropzone-target="placeholder">
1110
{%- if attr.placeholder is defined and attr.placeholder is not none -%}

src/Dropzone/Tests/Form/DropzoneTypeTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
*/
2626
class DropzoneTypeTest extends TestCase
2727
{
28-
private ContainerInterface $kernel;
28+
/**
29+
* @var ContainerInterface
30+
*/
31+
private $container;
2932

30-
public function setUp(): void
33+
protected function setUp(): void
3134
{
3235
$kernel = new TwigAppKernel('test', true);
3336
$kernel->boot();

0 commit comments

Comments
 (0)