OK this turned out to be simpler than I thought. Below is what I did. I used FileUpload I didn’t need the extra features supplied by FancyUpload.
So first down load FileUpload snippit open snippet.fileupload_v1.0.txt in a text editor
find
/* -------------- No configurable stuff below this line ------------ */
// Setup the defaults
if (!isset($tpl)) return $_fu_lang['error_no_tpl'];
if (!isset($path)) return $_fu_lang['error_no_path'];
if (!isset($maxsize)) $maxsize = 1048576; // In bytes (1 megabyte)
if (!isset($uploadgroups)) $uploadgroups = '';
if (!isset($extensions)) $extensions = 'zip,jpg';
if (!isset($createpath)) $createpath = 0;
Add
if (isset($_POST['path'])) $path = $_POST['path'];
after the // Setup the defaults.
Now open the uploadform template you want to use in a text editor.
find
<table>
<tr><td>First file:</td><td><input name="userfile[]" type="file" /></td></tr>
and change to
<table>
<tr><td>Folder:</td><td><select name="path">
<option>/Firstdirectory/</option>
<option>/Firstdirectory/Sub1/</option>
<option>/Firstdirectory/Sub2/</option>
<option>/Secinddirectory/</option>
<option>/Thirddirectory/Sub1/</option>
<option>/Thirddirectory/Sub2/</option>
<option>/Thirddirectory/Sub3/</option>
</select></td></tr>
<tr><td>First file:</td><td><input name="userfile[]" type="file" /></td></tr>
Now follow the install instructions as per the snippit but using the new code.
You will still need to specify the &path=`Firstdirectory` as part of the snippit call as it defaults to this if no directory chosen.
Hope this helps others