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
With this line in the return, the file is validated and the upload is successful. I would like to test some other things in the validate function, such as file type, creating an alert and causing the validation to fail if the files are of the wrong type. Testing for file type and sending the alert is no problem, but if I try to return any boolean, or any other value from the validate function, validation simply fails. In fact, so far as I have found, only the line above is successful. It may not even be testing successfully for file size. I have read the documentation several times, but am confused by the two forms of validate function on the server versus the validate function on the client and still do not have a clear idea of what to return.
Matt
The text was updated successfully, but these errors were encountered:
I have this validate function on the client:
With this line in the return, the file is validated and the upload is successful. I would like to test some other things in the validate function, such as file type, creating an alert and causing the validation to fail if the files are of the wrong type. Testing for file type and sending the alert is no problem, but if I try to return any boolean, or any other value from the validate function, validation simply fails. In fact, so far as I have found, only the line above is successful. It may not even be testing successfully for file size. I have read the documentation several times, but am confused by the two forms of validate function on the server versus the validate function on the client and still do not have a clear idea of what to return.
Matt
The text was updated successfully, but these errors were encountered: