develooper Front page | perl.beginners | Postings from March 2002

RE: Transferring files from a client

From:
Brian
Date:
March 27, 2002 08:44
Subject:
RE: Transferring files from a client
Message ID:
029e01c1d5ae$437c7420$0200005a@drevlin
Ummmm, perhaps if some thought is put into this you'll be able to figure
out why you CAN'T do this.  It's the same reason that you can't give
<input type="file"> a value.  It's a security risk.  If you could just
grab any files you wanted off anybody's computer there would be
worldwide confusion and the end of civilization as we know it.

Multiple input boxes are about all you can do in this situation I think.
'Tis unfortunate, but true.

Brian Johnson
Up & Running (http://www.uarss.com)
Computer Service/Software Development
Phone: 906-483-4917
E-Mail: service@uarss.com
For fast relief to computer stress call Up & Running
  Because throwing it out the window is not an option.


> -----Original Message-----
> From: Emmanuel Jaeckert [mailto:emmanuel@jaeckert.org]
> Sent: Wednesday, March 27, 2002 9:40 AM
> To: beginners-cgi@perl.org
> Subject: Re: Transferring files from a client
> 
> I think multiple <input type="file"> could do the job but what i want
is
> somewhat different :
> user wouldn't have to choose files, they should be chosen
programatically,
> so i want my script to look to local directory to achieve file list to
> upload, but for security issue, i think that nor Perl nor JS could do
it.
> Am
> i right ?
> 
> Thank
> 
> "Fliptop" <fliptop@peacecomputers.com> a écrit dans le message de
news:
> 3CA1C1EF.6070205@peacecomputers.com...
> > Emmanuel Jaeckert wrote:
> >
> > > thank you for your ans, but as far as i understand (maybe i don't)
> cgis's
> > > upload() method only work for one file based on the user choice
after
> a
> > > manual browse...
> > >
> > > I want to permit user to enter any text in an input box and get
all
> files
> > > eg : the user type "13", files i want to be uploaded are :
> FD???13.FIC.
> > > User don't know "???" (nor i don't).
> > >
> > > Perhaps there's no way to do it with perl ?
> >
> >
> > i don't think so - and i don't think it's a perl issue either, but
> > rather something to do with the http protocol.  when i want to pass
> > multiple files, i provide multiple <input type="text"> boxes.
> >
> 
> 
> 
> --
> To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org
> For additional commands, e-mail: beginners-cgi-help@perl.org




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About