PHP file uploads no temporary folder configured for uploads.

dr1125

New Member
Messages
3
Reaction score
0
Points
1
Hello,

I am having a problem with PHP file uploads on my website hosted on x10Hosting.

Domain:
ata-ardilosa.x10.mx

Whenever I try to upload any file through PHP, the upload fails with:

UPLOAD_ERR_NO_TMP_DIR
Error code: 6
"The server does not have a temporary folder configured for uploads."

I created a small PHP test file and got the following output:

DIR: /home/shofbyhy/domains/ata-ardilosa.x10.mx/public_html
TEMP: /tmp
UPLOAD_TMP_DIR:

As shown above, upload_tmp_dir is empty.

I already tried creating the following folders:

/home/shofbyhy/tmp
/home/shofbyhy/domains/ata-ardilosa.x10.mx/tmp
/home/shofbyhy/domains/ata-ardilosa.x10.mx/public_html/tmp

I also tried setting permissions to 755 and 775.

I created a .user.ini file inside public_html with:

upload_tmp_dir = /home/shofbyhy/tmp
file_uploads = On
upload_max_filesize = 64M
post_max_size = 64M
max_file_uploads = 20

But upload_tmp_dir still appears empty in PHP, and uploads still fail with code 6.

Could someone please help me restore or configure the PHP temporary upload folder for my account/domain?


Thank you.
 

mrburnsx

Community Advocate
Community Support
Messages
1,212
Reaction score
93
Points
48
Please verify in hosting control panel:

Extra Features > Select PHP Version > Options that file_uploads is enabled/checked
 

dr1125

New Member
Messages
3
Reaction score
0
Points
1
Please verify in hosting control panel:

Extra Features > Select PHP Version > Options that file_uploads is enabled/checked
Ive checked and it was already enabled, I retried and still get the same error message
 
Top