themistral Posted October 25, 2007 Share Posted October 25, 2007 Hi guys, I am having a problem with either uploading or viewing a Word (.doc and .txt) file. I use a form with multipart/form-data enctype to upload the file. I also parse the filesize, filetype and filecontent to a database. All is added to the database fine. After reading a few things on the internet it seemed I should use blob rather than text for the field type holding the content of the uploaded file. However, when I view the contents, I get lots of extra characters at the top and bottom of the 'real' content. I have played around with charsets but to be honest, don't really know what I'm doing - and I haven't been able to make it any better! There is no way we can change the Word file to HTML or import it into Dreamweaver as our clients will be uploading their own files - so we need to be able to strip these characters out via the website. I hope that is explained OK but if anything is not clear, I will try and explain a bit further! Here's hoping someone can help! Quote Link to comment https://forums.phpfreaks.com/topic/74738-php-uploads-and-word-files/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.