Without boring or confusing people with the reasoning, here is the following.
1. On different forms (not all) is an upload button.
2. There is an upload form for selecting a file and a folder.
3. The user selects the file for uploading and desired output directory.
4. When the save button is pressed the file is appended to the folder directory (i.e. saved in the directory).
The following is an example of what is occurring.
The end-state actually would be a text file that is read by the upload form for its' default directory rather than the user navigating to and selecting one each time, as this increases chance of error.
I am sure someone has already done this in the past so figured I would ask.
I found this from Allen Browne, which will come in handy for evaluating whether a file or folder already exists. http://allenbrowne.com/func-11.html