Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - UPLOAD_ERR_NO_TMP_DIR

I am using Cbeyond (www.cbeyond.com, some of you might be familiar with them) as a PHP Enabled webhost, I'm having issues with my PHP Upload functions, when I check as follows:

$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've tried creating:

/www/htdocs/tmp (no luck)

Is there anyway to create a tmp location on the fly, I just need to parse an uploaded .txt file into my MySQL DB.

like image 630
jordan.baucke Avatar asked Jun 01 '26 14:06

jordan.baucke


1 Answers

You probably need to check with CBeyond whether they allow file uploading or not. If so, check with them whether their php.ini File Uploads section has upload_tmp_dir properly defined.

like image 98
mauris Avatar answered Jun 03 '26 05:06

mauris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!