I would like to upload files to my server using php and xmlhttprequest in POST.
But my /tmp dir is too small, so I created a new tmp folder for upload with 777 access, and I changed the vhost conf file to set upload_tmp_dir to this folder's path.
If i display phpinfo, this folder appears as the upload_tmp_dir.
But when I upload a file, nothing appears in the new tmp folder but I can see this type of file in /tmp : 20140321-165951-Uyxh938AAQEAACcDEeEAAAAC-request_body-uW4YRM
What can I do to get php upload to use the tmp folder I created ?
Thanks a lot for your help
See this answer
which may help. – Fred -ii- Mar 21 '14 at 16:31This Q&A
may also explain it. I quote from the answer given: "PHP will delete uploaded files when the script exits, unless you've moved/copied the file somewhere else yourself. The upload process isn't a "do it now and come back later to deal with it" system. It's "deal with it now, or it's gone"." – Fred -ii- Mar 21 '14 at 16:35