E
E
eternal_blue2020-12-15 09:27:46
PHP
eternal_blue, 2020-12-15 09:27:46

Why is php_upload empty in OpenServer?

Hello, uploading a file to the local server, here is the $_FILES output:

array(1) { ["userfile"]=> array(5) { ["name"]=> string(57) "Роль государства в экономике.doc" ["type"]=> string(24) "application/octet-stream" ["tmp_name"]=> string(56) "D:\OpenServer\OpenServer\userdata\php_upload\php63E1.tmp" ["error"]=> int(0) ["size"]=> int(50688) } }

is_uploaded_file returns true, but trying to move the file from the temp folder to the project folder returns this:
Warning: move_uploaded_file(/resources/upload_files): failed to open stream: No such file or directory in D:\OpenServer\OpenServer\domains\parse.your.test\app\web.php on line 8

Warning: move_uploaded_file(): Unable to move 'D:\OpenServer\OpenServer\userdata\php_upload\phpCB2.tmp' to '/resources/upload_files' in D:\OpenServer\OpenServer\domains\parse.your.test\app\web.php on line 8

I looked, after uploading the file, the php_upload folder is really empty. Why?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question