Upload error 6 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Upload error 6 (/showthread.php?tid=87604) |
Upload error 6 - lucavalentino - 05-09-2023 I use Codeigniter 3 I switched to php 8.1.11 and file uploads give me error 6. I don't understand why. With xampp on the local machine everything is ok. the problem is on the server. RE: Upload error 6 - JustJohnQ - 05-09-2023 According to: https://www.php.net/manual/en/features.file-upload.errors.php Code: UPLOAD_ERR_NO_TMP_DIR Value: 6; Missing a temporary folder. You should check TEMP en TMP variable values with phpinfo() RE: Upload error 6 - lucavalentino - 05-09-2023 I have no idea where is the tmp folder in CPanel hosting RE: Upload error 6 - JustJohnQ - 05-09-2023 That's why you need to check it with phpinfo() The summary will tell you if the value is set. My guess is that it isn't set. Actually look for 'upload_tmp_dir' but the value might not be set. According to: https://support.cpanel.net/hc/en-us/articles/1500011342461-PHP-upload-path-is-always-defined-as-tmp it should always be /tmp folder/ RE: Upload error 6 - lucavalentino - 05-09-2023 upload_tmp_dir is not set and in shared server hosting this is correct. The default temporary folder should be /tmp. It has all permissions 0777. any idea to fix error 6?? |