How can I make validation rules of uploaded files “on fly” ? #2428
Unanswered
sergeynilov
asked this question in
Q&A
Replies: 1 comment
-
You can use the basic file uploader. Input::make('avatar')->type('file') It will pass the file to your method and you can do any checks before saving |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I make validation of uploaded files “on fly” based on data in database.
Before selection of an file/image user selects data of type and depending on this
selection validation rules can be different.
As Upload component is opened and is visible in preview area before users submits a form
if there is a way to use custom Validation Request for image uploading before selected file is opened in preview area?
Please examples or ref to docs.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions