PHP - UPLOAD_ERR_NO_TMP_DIR

I am using Cbeyond (www.cbeyond.com, some of you may be familiar with them) as a web host with PHP support, I am having problems with my PHP upload functions when I check the following:

$error = $_FILES['uploadedfile']['error']; 
echo $error;

I get "6" for the error message: "UPLOAD_ERR_NO_TMP_DIR"

I have a / tmp directory at my root, here is the file structure:

/ <--- ftp root (contains a working /tmp)
/www/htdocs/ <-- webroot

I tried to create:

/www/htdocs/tmp (no luck)

In any case, to create a tmp location on the fly, I just need to parse the downloaded .txt file into my MySQL database.

+3
source share
1 answer

, CBeyond, . , , " php.ini" upload_tmp_dir.

+4

Source: https://habr.com/ru/post/1724157/


All Articles