Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Need help with CGI::Upload

by cfreak (Chaplain)
on Jul 29, 2003 at 13:39 UTC ( #278821=note: print w/replies, xml ) Need Help??


in reply to Need help with CGI::Upload

I think your problem is that you're using a do-it-yourself form processer rather than CGI.pm to get your form parameters, then you're calling CGI.pm as well. CGI handles all form processing for you. If you want a hash of your form parameters you can do this:

my %parse = $cgi->Vars();

Or you can do named parameters:

my $directory = $cgi->param('directory');

Using the two could be the reason you're getting the 'Malformed multipart POST' ... though I can't be sure. At any rate you should still use just CGI.pm

Next you're uuencoding your file as it comes in. I don't think you want to do that if you're going to show the file again in anything else. I don't believe that image programs or browsers are going to be expecting it to be encoded that way.

I don't know if my suggestions will solve your problem but I certainly hope it helps :)

Lobster Aliens Are attacking the world!

Replies are listed 'Best First'.
Lobster Aliens Are attacking the world!
by jdavidboyd (Friar) on Jul 29, 2003 at 18:51 UTC
    Huh. You say that like it is a bad thing...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-06-30 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (97 votes). Check out past polls.

    Notices?