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.
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.