Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Reading a File Uploaded to a cgi script

by cei (Monk)
on Mar 13, 2001 at 23:47 UTC ( [id://64193]=note: print w/replies, xml ) Need Help??


in reply to Reading a File Uploaded to a cgi script

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?

  • Comment on Re: Reading a File Uploaded to a cgi script

Replies are listed 'Best First'.
Re: Re: Reading a File Uploaded to a cgi script
by rhowerton (Novice) on Mar 13, 2001 at 23:53 UTC
    I really couldn't tell you one way or the other. I pulled most of those statements directly from CGI.pm docs, made some modifications so they matched my variables and ran with it. Thanks for the input though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found