Answer the question
In order to leave comments, you need to log in
"Who" creates files in a temporary folder when they are uploaded?
Question from the heading "I know the world".
It's about files downloaded via http.
Interested in a bunch of php and nginx.
Does PHP parse the request, extract the files there and put them in a temporary folder, or is it the role of the web server?
Answer the question
In order to leave comments, you need to log in
Nginx parses the request header and redirects it to php and it already parses the request body. PHP has an upload_tmp_dir option that allows you to specify exactly where to upload these temporary files. As for the nginx module, this is a separate non-standard mechanism and will not be visible in the $_FILES variable (unless, of course, they fix it specifically for the nginx module). If you implement your own http server with CGI/FastCGI support, you won't have to parse the request body.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question