If you don’t debug by a PHP debugger (you should learn it), you better use the good old method:
- Enable Debug, run the process again, when you see the error, go to the log to check the complete server side error.
- Press F12 in your brower and go to the Console panel to check for client side JavaScript errors.
- Check HTTP response, select the “jupload” request and try to find PHP errors in the HTTP Response under the F12 → Network → Response panel.
You should provide result of all three above in your next post.