Skip to content

[LiveComponent] Uploading Files example on ux.symfony.com does not allow Upload after validation-error #2731

Open
@TPantelConventus

Description

@TPantelConventus

The "Uploading files" example which can be found here does not work as intended.

If you use the "Single file" input field and try to upload a file, which does not fulfill the validation-rules (in that case: 'maxSize' => '1M', it will show the validation error, which is set in the component's PHP-class via the #[LiveProp] public ?string $singleFileUploadError = null;

So far - so good.

But if you then try to upload a file, that does fulfill the requirements, it still fails and shows the validation error.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    LiveComponentdocsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions