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:
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.my $content = $query->uploadInfo($fname)->{"Content-Type"}; unless ($content =~ /(jpeg|gif|png)$/) { return "this doesn't look like a jpg or gif!" } $imgname .= ".".$1;
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 | |
by osfameron (Hermit) on Nov 11, 2001 at 19:35 UTC |