This forum is rather dead, but I figure it could get more lively if we add some questions... so here we go.
I need some help with the handling of a file uploaded via an HTML form. First of all, I must identify if the file is a PDF or a RTF. Everything else should be rejected. Checking the extension is an idea but MS Word is stupid and will still open a renamed MS-Word document (e.g. a .doc with an .rtf extension) as
a MS-Word document. DOC are a no-no because of security... and because the client doesn't want them.
Once it has been validated, the file must be mailed
to an user. That is the tricky part, since I don't have any PEAR classes on the server. The admin is out for a week and I need
to finish this project for wednesday. I have seen some documentation on BASE64 but I am not really familiar with it