Skip to content

[Live Component] Are file uploads supported? #486

Closed
@benr77

Description

@benr77

Hello again. I'm trying to do a file upload in a Live Component. I've tried with both DropzoneType and the regular FileType but running into the same problem I think.

I have been reading related issues #354, #289, #299 etc but I'm unsure of the current state of play. I believe these discussions are only related to using a UX component such as Dropzone inside the Live Component.

Even with a standard FileType field in the form, as soon as I add a file to be uploaded to the form field, the component reloads and I think the file to be uploaded is lost, so when I then submit the form it sends empty data for the file field.

I can live without Dropzone support in the Live Component for the moment, but of course that would be great to have - but should the standard FileType field work?

How can I stop the Live Component re-rendering and losing the selected file as soon as I add the file to the field?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions