Upload error 6 |
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.
According to:
https://www.php.net/manual/en/features.f...errors.php Code: UPLOAD_ERR_NO_TMP_DIR Value: 6; Missing a temporary folder. You should check TEMP en TMP variable values with phpinfo()
I have no idea where is the tmp folder in CPanel hosting
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/arti...ned-as-tmp it should always be /tmp folder/
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?? |
Welcome Guest, Not a member yet? Register Sign In |