in reply to uploading files in CGI

problem one: MS Word files aren't text files. they're binary-encoded, IIRC, so you're not going to be able to do a simple conversion.

second: you haven't read the docs for CGI.pm. (found here) the explanation for how to handle this (along with code) is right there. i re-read it today to handle this problem.

update: yes, as tilly noted, there's a word missing. should've been 'IF you haven't read. . . "

Replies are listed 'Best First'.
RE (tilly) 2: uploading files in CGI
by tilly (Archbishop) on Sep 28, 2000 at 13:52 UTC
    I think you meant to say, If you haven't read....

    Looking at the code example it looks like he not only has read the docs, but correctly figured out that he wants to use the code from here for binary files.

    Unfortunately I notice that the example has an open without checking for success. Oops. Since this is an example that people are likely to copy without understanding, I think this is important.