Hi novi,
Can you show me the full error message which you want to catch?
In the example I attached, it only allow to upload .jpg file, please try to upload a .gif .txt file, then it will catch the error and show the custom error message?
Regards,
Ken