Thanks, printing the contents of the directory worked (I changed it to display links to all files it finds and only display filetypes taken as arguments into the function.
My remaining question is: How do I save file attachments to the server? I can now recieve them with those groovy new $_SERVER vars (and I should be able to put the filepath to save them to as a field on the same form) but how do I save them?
Help on this would be appreciated, as the rest has been.