I don’t think this is an application issue but hoping for some help. Some pictures taken from an iphone will upload with a 500 server error. This error happens if the jpg is uploaded via a PC or the iphone app. Not all photos will give this error however. It happens regardless of the size of the photo.
I am not able to find any actual detailed error logs in the ngnix logs. Only in the access log do i see a 500 error.
Thanks for the reply. The laravel logs show the following:
[2020-12-25 19:28:09] production.ERROR: ErrorException [0] : /var/www/ninja/app/Ninja/Repositories/DocumentRepository.php [Line 112] => getimagesize(): Read error! {“context”:“PHP”,“user_id”:1,“account_id”:1,“user_name”:“HIDDEN”,“method”:“POST”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36”,“locale”:“en”,“ip”:“HIDDEN”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“documents”} []
[2020-12-25 19:28:09] production.ERROR: Uncaught TypeError: Cannot read property ‘public_id’ of undefined {“context”:“JavaScript”,“user_id”:1,“account_id”:1,“user_name”:“HIDDEN”,“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36”,“locale”:“en”,“ip”:“HIDDEN”,“count”:2,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“log_error”} []
I’ve done a little research and appears to be the same behavior at here
In my case the PHP upload size is set to 20MB but I’ve also tested various qualities of the iphone photo and it will not work regardless. What is odd, is that some iphotos will work just fine with no issues
Here is a demo picture for an expense that will not upload. I’m curious, does it work for anyone else?