Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread John Saylor
hi ( 04.08.02 19:32 -0400 ) Alex Brelsfoard: But I am a bit curious to know if there is a way to do this without using CGI.pm. sure, mod_perl [much faster, lighter]. the interface is a bit better than CGI.pm, but not a whole lot. i just think it's a tricky thing to be doing anyway [uploading

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
hi ( 04.08.02 19:32 -0400 ) Alex Brelsfoard: But I am a bit curious to know if there is a way to do this without using CGI.pm. sure, mod_perl [much faster, lighter]. the interface is a bit better than CGI.pm, but not a whole lot. i just think it's a tricky thing to be doing anyway

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Richard Morse
On 3 Aug 2004, at 9:25 AM, Alex Brelsfoard wrote: hi ( 04.08.02 19:32 -0400 ) Alex Brelsfoard: But I am a bit curious to know if there is a way to do this without using CGI.pm. sure, mod_perl [much faster, lighter]. the interface is a bit better than CGI.pm, but not a whole lot. i just think it's

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Peter Wood
# Already did statement outside this function. my $picture = $query-upload($file); Perhaps something got cut out here - where did you get the $file variable from? Did you use a CGI::filefield form to get the file name? I'm assuming you have already read this, but just in case,

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Sean Quinlan
On Mon, 2004-08-02 at 19:32, Alex Brelsfoard wrote: Ron, Sean, Thank you both. I will give it a try. Sean, no worries, I have a two-layered security system in place, and plenty of well-placed warnings. I'm perfectly happy using CGI.pm (and am currently on this project). But I am a

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
Thanks Richard, everyone. I tried your (Richard) code also. It bombs on No File Specified. Looks like somehow it can't grab ahold of the file I'm trying to upload. There must be something in the rest of my cod that is interfering with all this. But I really can't imagine what. The rest

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
Upon further testing I verified that the statement my $picture = $query-upload($file); is indeed returning undefined. What would cause that? I do know that $file DOES contain valid information (the correct name of the field holding the file to be uploaded). --Alex Thanks Richard,

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Ron Newman
Upon further testing I verified that the statement my $picture = $query-upload($file); is indeed returning undefined. What would cause that? Show us the entire HTML FORM that contains the file upload field. ___ Boston-pm mailing list [EMAIL PROTECTED]

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Ronald J Kimball
I'm not sure why your code isn't working. It's a bit hard to debug, because we're just seeing bits and pieces. Anyway, here's a simple example that does work: #!/usr/local/bin/perl -w use strict; use CGI; my $cgi = new CGI; print $cgi-header(); print EndOfHTML; html headtitleFile Upload

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
I am not at all certain of what I did differently. I was playing around with all of your suggestions. And one of my attempts ACTUALLY WORKED! So thank you all very much for your help. I have tested it several times now. If you are still curious and want to see what I've got (code), I'll be

[Boston.pm] Re: Uploading a picture with perl

2004-08-02 Thread Alex Brelsfoard
Ron, Sean, Thank you both. I will give it a try. Sean, no worries, I have a two-layered security system in place, and plenty of well-placed warnings. I'm perfectly happy using CGI.pm (and am currently on this project). But I am a bit curious to know if there is a way to do this without

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-02 Thread Mike Burns
--- Alex Brelsfoard mumbled on 2004-08-02 19.32.40 -0400 --- project). But I am a bit curious to know if there is a way to do this without using CGI.pm. You could write CGI.pm yourself. Either copy and paste the relevant bits, or use this Web page: