Cancell file upload
Hi. How can I cancel the file upload to FileUpload? The verification condition is as follows: if the name of the uploaded file is not found in the database, then cancel its download.
Solution:Jump to solution
I think you can use a custom rule, because the file is moved when you submit the form
```php
FileUpload::make('attachments')
......
10 Replies
Can anyone tell me? Or maybe through the , you can somehow check the file name from the database to make a check?
Can anyone help?
Solution
I think you can use a custom rule, because the file is moved when you submit the form
I tried to return the error anyway. Does not work 😦
when you save the form?
No, when upload file
add this
Yes, it works. Is it possible to do something so that this picture does not load? and there was an error as with the maximum file size
Like this
hum, not sure if you can do this..
Ok, thx 🙂