in reply to Problem with CGI::Upload using IIS v5.1

Your usage of the CGI::Upload module in your code appears to be correct, although you should incorporate the binmode action recommended by dws above. Similar examples showing the usage of this module can be found on this site here and here.

Could it be something to do with Mime types ? I'm not sure what to do with this method: mime_magic('/path/to/mime.types'). Should I give this method a list of valid mime types?
No, the mime_magic method is for the specification of an alternate MIME types file if you are finding the core set supplied by File::MMagic too limited when using the mime_type method - If you are not using the mime_type method to verify the MIME type of uploaded files, the mime_magic method can be safely ignored.

If you are still experiencing problems with this module and your web server error logs are unrevealing, feel free to drop me an email and I'll see if I can replicate and solve this problem with you.

Update: /msg-ed Bgorman with email contact details.

 

perl -le "print+unpack'N',pack'B32','00000000000000000000001010001110'"

Replies are listed 'Best First'.
Re: Re: Problem with CGI::Upload using IIS v5.1
by Bgorman (Initiate) on Nov 17, 2003 at 06:38 UTC
    I did incorporate the binmode action with the same unsatisfactory result. I tried to replicate the example code also with no luck. Another thing that does not appear to be correct is the return value from the mime_type method. No matter what kind of file I try to upload this method always returns "text/plain". I would like to work with rob_au on this but being new I'm not sure how to make contact through email