[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] HTTP File Uploads



At 9:40 AM +0930 9/14/99, Henry Penninkilampi wrote:
>Greetings!
>
>Anyone here handled HTTP File Uploads before (as per RFC 1867)?

Yes, for many sites.

Get cgi-lib.pl by Steve Brenner or CGI.PM by Lincoln Stein.

cgi-lib.pl is older, not as strongly supported or documented, but, 
contrary to what you might see stated on this list, it _has_ been 
updated to take advantage of Perl 5. The author has a book out; not 
sure if there's a recent edition. His web site has examples, 
including for file uploads.

CGI.pm is the center of many programmers' CGI scripting these days. 
It does plenty of things, although many use it for just specific 
tasks and hand-roll the rest of their CGI scripts. It's excellently 
documented, author has a great book, _and_ very importantly, it is 
now a standard part of the Perl distribution, so you just

use CGI;

and go from there. It can be used with 'traditional' function 
(subroutine) calls, or in snazzy new object-oriented mode.

With either, get the newest version. There was a problem until some 
months back with uploading files from Windows machines, causing me 
endless wasted time when uploads would work fine from my Mac and not 
work from clients' dozers...

Sorry I'm not where I have the URLs of source sites for either, but a 
Sherlock search finds them quickly. As I say, though, if you go with 
the trend and use CGI.pm, it's probably already there on your host 
server.

Good luck!

1;

- Bruce

_Bruce_Van_Allen___bva@cruzio.com__831_429_1688_V_
_PO_Box_839__Santa_Cruz_CA__95061__831_426_2474_W_

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org