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

That does not appear to be the issue. When I transfer the file to a Linux box (yes, my office workstation is Windows until I get time free to change that) the whole filename is lower-cased, just like on the Windows box. In fact, I checked for the same thing before, and other known Windows issues such as funky path resolution (I used the DOS six-plus-tilde-plus-number versions of the directory names and everything, to no avail).

I think I've even tried multiple browsers, but I can't recall for sure.
  • Comment on Re: (tye)Re: What's wrong with this picture?

Replies are listed 'Best First'.
(tye)Re3: What's wrong with this picture?
by tye (Sage) on Nov 09, 2001 at 09:56 UTC

    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")
      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