You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: