Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upload file doesnt seems to work #24

Open
lsv opened this issue May 14, 2024 · 1 comment
Open

Upload file doesnt seems to work #24

lsv opened this issue May 14, 2024 · 1 comment

Comments

@lsv
Copy link

lsv commented May 14, 2024

If your addDependent field have a FileType::class the model behind will stay as null, and not have a UploadedFile.

I tried to add enctype: multipart/form-data to form attributes, like this

{{ form_start(form, {
        attr: {
            'data-action': 'live#action:prevent',
            'data-live-action-param': 'save',
            'enctype': 'multipart/form-data',
        }
    }) }}

But that didnt do the trick.

@dkrasov
Copy link

dkrasov commented Jun 12, 2024

same here

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants