XP is just a number | |
PerlMonks |
Re: Reading a File Uploaded to a cgi scriptby cei (Monk) |
on Mar 13, 2001 at 23:47 UTC ( [id://64193]=note: print w/replies, xml ) | Need Help?? |
Um, perhaps another thing. You're setting $type = $query->uploadInfo($filename)->{'Content-Type'}; and then checking $type against 'text/html'. But if your test source file ends in '.txt' then what is mapping it to be an HTML file? I would think the file coming in would consider itself text/plain. Am I missing something?
In Section
Seekers of Perl Wisdom
|
|