in reply to Re: (tye)Re: What's wrong with this picture?
in thread What's wrong with this picture?

Hmm, I think I misread the code. Here is a bigger chunk:

my $content = $query->uploadInfo($fname)->{"Content-Type"}; unless ($content =~ /(jpeg|gif|png)$/) { return "this doesn't look like a jpg or gif!" } $imgname .= ".".$1;
which means that your problem is probably that the uploaded image doesn't have the proper Content-Type header? I didn't think that HTTP file uploads had Content-Type headers, but I probably wouldn't know such things.

Anyway, that gives you something to look into. (BTW, $query is a CGI.pm object and I did some checking and it really does appear to be checking the header information.)

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re3: What's wrong with this picture?
by mr_mischief (Monsignor) on Nov 09, 2001 at 23:39 UTC
    Darn Opera! Netscape 6.1 worked! It's a browser issue. :-( Now I guess I'll have to try with the latest Opera just to see if it's been fixed.
      You're right: I am also using Opera (v5.12). So I tried with the lovely IE5 and was able to upload a gif.

      Now if only I had some artistic talent...

      Cheerio!
      Osfameron