J
J
JackShcherbakov2018-02-16 16:08:42
PHP
JackShcherbakov, 2018-02-16 16:08:42

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

With this information, I realized two things:
  1. My config changes had no effect
  2. For some reason, files are not saved either in the default folder or in my folder.

How to fix? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JackShcherbakov, 2018-02-16
@JackShcherbakov

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 question

Ask a Question

731 491 924 answers to any question