modify upload_tmp_dir for file uploads
Posted on 2005-05-12
I would like to move the location of the temporary file upload directory for image uploads.. right now it is pointed at a different partition than the rest of my php application, and moving the files from one partition to another is taking too much time (big files are involved).
I don't have access to the php.ini file, so i can't modify it there, but i have been told that i can add something to a .htaccess file that will do it for me (override the php.ini file i guess).. what i am looking for is the syntax for the .htaccess file that will let me change the temp upload folder to be pointing at whatever folder i want it to.
I think it is the upload_tmp_dir value in the ini file, but i could be wrong about that.
The way the app works is that users go to a page in the following directory:
They select the files that they want to upload and the files get uploaded via a java applet in the following directory:
(the applet is called from the page in the first mentioned directory)
The java applet gets them uploaded (via normal post data submission) and then call another file in same directory as the applet (/usr/home/xxxxx/public_html/administrator/includes) that processes and moves the files to their final/non-temp location.
Like i said earlier, I need to know how to select which folder is used as the temporary file upload directory.