Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: CGI: Browse for directory (not file)

by steves (Curate)
on Nov 20, 2004 at 23:20 UTC ( #409295=note: print w/ replies, xml ) Need Help??


in reply to CGI: Browse for directory (not file)

You're confused about who does what. The browser interprets the <INPUT TYPE="FILE" NAME="file"> and presents the file browser dialog box to the user. When the form is submitted by the browser, the CGI program gets the file data provided by the browser.

I am not aware of any browser that supports directory uploads. Some will allow more than one <INPUT TYPE="FILE" NAME="file"> tag per page, which might offer the ability to let someone pick several files. But I've never tried that and I've read it's browser dependent.

If you want to automate the uploading of a full directory of files to an existing browser page/CGI that supports one file per transaction, you could automate that with Perl and LWP.


Comment on Re: CGI: Browse for directory (not file)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://409295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-07-12 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls