ux icon indicating copy to clipboard operation
ux copied to clipboard

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

Open TPantelConventus opened this issue 7 months ago • 3 comments

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

TPantelConventus avatar May 13 '25 11:05 TPantelConventus

As we do not want to handle any upload from the internet, this demo is only partially functional. Indeed, on a real app, when you validate successfully a file, you may want to reset any previous error.

smnandre avatar May 24 '25 13:05 smnandre

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Nov 25 '25 12:11 carsonbot

Friendly ping? Should this still be open? I will close if I don't hear anything.

carsonbot avatar Dec 09 '25 12:12 carsonbot

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

carsonbot avatar Dec 23 '25 12:12 carsonbot