in the file input make sure you set acceptable image types as jpeg or png otherwise Apple devices might send HEIC format which your controller might not handle. If the file is limited to those mentioned, IOS will convert the image before sending.
Cant upload images from mobile device | Laravel Nginx Server DO
I have hosted my laravel 10 app in a digital ocean droplet, i installed lemp stack on it and everything works fine except uploading images from any mobile device. It always returns "Image failed to upload", i have increased in php.ini post_max_size=40M upload_max_filesize=40M max_file_uploads=20
and nginx website conf server { ... client_max_body_size 150M; ... }
but still it returns same error. It works fine locally, i can upload image from mobile devices but online nope, it does not work. Any idea why this happens ? i am new to nginx and may be missing something...
@gr33n_al create a file in your public folder
info.php
<?php
phpinfo();
then visit the info.php route and check that your settings are in place
Please or to participate in this conversation.