Welcome Guest, Not a member yet? Register   Sign In
Upload error 6
#1

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.
Reply
#2

(This post was last modified: 05-09-2023, 03:42 AM by JustJohnQ.)

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()
Reply
#3

(This post was last modified: 05-09-2023, 03:50 AM by lucavalentino.)

I have no idea where is the tmp folder in CPanel hosting
Reply
#4

(This post was last modified: 05-09-2023, 04:18 AM by JustJohnQ.)

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/
Reply
#5

(This post was last modified: 05-09-2023, 02:47 PM by lucavalentino.)

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??
Reply




Theme © iAndrew 2016 - Forum software by © MyBB