PHP Upload Error - UPLOAD_ERR_NO_TMP_DIR

Website URL

https://msdigitalnetwork.nfy.fyi

Error Message

Hello,

My PHP file uploads were working previously, but now all file uploads are failing.

I tested with a simple test-upload.php file and it shows:

UPLOAD_ERR_NO_TMP_DIR (Error 6)
“Server temporary upload folder is unavailable.”

Website:
https://msdigitalnetwork.nfy.fyi

Please check and fix the PHP temporary upload directory (upload_tmp_dir) for my hosting account/server.

File uploads were working previously, but suddenly stopped working.

I have attached a screenshot showing the error.

Thank you.

Thank you for reporting this. I checked it, and there appears to be an issue with the temporary file path on multiple (and maybe all) free hosting servers.

I cannot fix this myself, but I have submitted a request upstream to get this fixed.

Website: msdigitalnetwork.nfy.fyi

PHP Version: 8.4.25

upload_tmp_dir: /tmp
sys_temp_dir: empty

/tmp exists: YES
/tmp writable: NO

PHP upload_max_filesize: 20M
PHP post_max_size: 30M

PHP upload error: UPLOAD_ERR_NO_TMP_DIR
Error Code: 6

Uploaded file size received by PHP: 0 bytes
Temporary file: empty

File uploads should now be working again. It appears to be a bug that was introduced as part of the PHP upgrade to PHP 8.4.