RE: CGI.pm file upload

2002-03-06 Thread Lee Goddard
I'm an idiot. I set the form to the correct encoding, using a type attribute, not enctype. Deary me time for a holiday. Thanks for you help! lee ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com

RE: CGI.pm file upload

2002-03-06 Thread Lee Goddard
Everything is fine with my file upload, except $cgi_pm_instance->upload($upload_form_field_name) always returns a string and never a file handle. If no-one knows about this, I'll get in touch with the CGI pm chap. TIA lee ___ Perl-Win32-Users maili

RE: CGI.pm file upload

2002-03-06 Thread Lee Goddard
Thanks for the example Seems to suggest that my code was okay, because I get a related error when running your code: Can't use an undefined value as a symbol reference at ... the lines while($bytesread = read($fh, $buffer, 1024)) { print $buffer;

RE: CGI.pm file upload

2002-03-06 Thread Lee Goddard
> # # would it be faster to do an 's/\//\\/g' to replace all '/' with '\' > # # and then just get the index of the final '\'? Don't know... > # # it would make the code cleaner, but it may be less efficient... > my $posreg = rindex($in_file_name, "/"); > my $posback = rindex($in_file_n

RE: CGI.pm file upload

2002-03-06 Thread Lee Goddard
At 15:58 05/03/2002 -0500, Morse, Richard E. wrote: >H some of this doesn't look right. > >For instance, point 5 -- $file in this case should be the filehandle, >which may >also be the text of the parameter, but I'm not positive on that -- if you want >the value of the file, try $self->{c