Answer the question
In order to leave comments, you need to log in
Why are the files from the form saved in the wrong place?
Hello!
From the form, a file comes to my server, which I stubbornly try to save on this very server.
If anything, here is the documentation about this php.net/manual/ru/features.file-upload.post-method.php
In the php configuration directive, I wrote the following line - upload_tmp_dir = "С:/OpenServer/domains/asd/files"
. I did this so that the files would be saved in a different folder. By default, the folder is registered there "%sprogdir%/userdata/temp/"
, but for some reason files are not saved to it either. After changing the configuration in the debug information (which I generate myself) there is this line:
Временное имя, с которым принятый файл был сохранен на сервере. - C:\OpenServer\userdata\temp\phpD37C.tmp
Answer the question
In order to leave comments, you need to log in
From documentation -
At the end of the script, if the downloaded file has not been renamed or moved, it will be automatically deleted from the temporary folder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question