I
I
IvanN7772016-03-28 18:50:15
PHP
IvanN777, 2016-03-28 18:50:15

Magic tmp (php) Fedora $_FILES['userfile']['tmp_name'] no longer corresponds to the real location of the file, what to do?

Usually $_FILES['userfile']['tmp_name'] is the full path to the temporary file.
However, PrivateTmp changes this
as described in the answer.
Here it is described a little
. In theory, it is a little clear, but how to do it in practice. PrivateTmp=false
The real path to /tmp
/tmp/systemd-httpd.service-X9iE20R/tmp/
And the worst thing is that it changes /tmp/systemd-httpd.service-XXXXXX/tmp/.
I wanted to check with an antivirus before downloading the file through exec.
However, I don't know how to get the path to the temporary file.
I have Fedora 23

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