I can't seem to find a way to retrieve the directory a user uploads a file from using PHP. I could probably use JavaScript, but would rather keep everything server-side.
Basically, a user uploads a file to be processed. After processing, the altered file is placed back into the directory the original file was uploaded from or to a directory specified by the user. So my form contains 2 inputs, 1 for the directory the file was uploaded from, and one for a directory that the user may want to place the processed file:
<input type="file" name="uploadFrom" size="40">
and
<input type="file" name="downloadTo" size="40">
The variables $POST and $FILES do not contain the user-side directory information, they only contain the actual/temp file name and size. Does anyone know how this information can be retieved?
Thanks in advance.
Ken