Hi everyone. I need to credate a page that will allow someone to go and either select a file or a directory from their hard drive and hit "send" and have that value (just the file or directory name, not the actual file) sent to a system administrator.
My thoughts were to use a system simlar to an e-mail attachment to grab the name and then instead of actually getting the file, it simply sends the name.
For files, it works like a charm. However, I'm not sure what to do about directories. How can I let someone select the directory? The one workaround that came to mind is someone would need to select a file in a directory and then hit a checkbox to specify that the directory name needs to be sent (i.e. it would cut off the name of the file and just send the directory). Is this the best way to go? If it is, do I use ereg to cut off the file name?
Thanks!
--charles