Level 53
Error 6 = UPLOAD_ERR_NO_TMP_DIR
Check you php.ini for 'upload_tmp_dir' and make sure your web-usr (www-data ?) can write to it.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When i try to upload a file i get this error
project/vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesser.php
"The file "" does not exist"
under my Environment & Details
picture
array:5 [▼
"name" => "1.jpg"
"type" => ""
"tmp_name" => ""
"error" => 6
"size" => 0
]
yeet the same code just works fine on my local server, file is getting upload just fine but on the server it is giving me this error.
The issue has been resolved. The upload_tmp_dir was empty before and when provided with a path, the issue gets resolved.
Please or to participate in this conversation.