Answer the question
In order to leave comments, you need to log in
Why can't upload files?
move_uploaded_file($_FILES['reg']['tmp_name'], "".$_SERVER['DOCUMENT_ROOT']."/тест/".$_FILES['reg']['name']."");
Answer the question
In order to leave comments, you need to log in
The file system in Windows works with windows-1251 encoding, but the whole world has been successfully using utf-8 in websites for a long time, and you probably do too.
So either remove Cyrillic from the file system, or use iconv() to convert the path from utf-8 to windows-1251.
PS Either switch to Linux, where PHP does not do such a disgrace, since everything works in the same encoding (most likely).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question