Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a directory upload gui?

Status
Not open for further replies.

jlips

Programmer
Apr 5, 2004
5
US
I am writing a perl cgi script and wish to be able to graphically obtain the address of folders on the local computer. The command

print filefield('filename','',45);

gets me a file upload GUI, but the problem is I cannot select folders, only files.

Any suggestions?
 
right click, zip, and upload the zipfile, and have your routine unzip on the unix box ... methinks
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Not to be picky, but that's not what I want. My application would be much more user friendly if my upload GUI has the capability of selecting directories. I know it can be done (for example, in Winamp you can select a music folder via the "add folder" command).
-Joel
 
It's not possible to get a directory picker dialogue using ordinary HTML.

You could, I suppose, ask your users to pick a file in the directory, and then work out the directory path from that. It's a bit naff, though, and doesn't really help you anyway. A file picker, if configured right, wil send you the actual file they pick. My fix would only tell you the name of a remote directory - you won't be able to read or write to it.

-- Chris Hunt
 
Yea your solution is what I am doing now. I don't need to read or write to the directory, I just need the textual path for display purposes.

If I can't implement this in CGI/HTML, then I guess this will have to do. Oh well, thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top