> > Even if problem happens when files are downloaded, it is not related to > apache configuration. Email attachments are never downloaded directly from > Apache. When email attachments are downloaded in SquirrelMail, they always > go through src/download.php and this script sets content type from email > headers and IMAP message bodystructure. > > If it is download issue, why text/plain content type is set on docx > attachment? > > Lin should make sure that email has correct content type headers, try > reproducing upload issue in other browser and make sure that it is not > related to HTTP proxy. Firefox can have corrupted mime types database. > Safari is ... see other my emails or test yourself. > > -- > Tomas > -- OK the original email wasn't that clear, it's for uploading files, and Apache config wouldn't have anything to do with this I thought it was for downloading. Apache config DOES have *something* to do with it, because before I added MIME types the problem of them downloading as .zip stopped. I would suggest that download.php doesn't do it all. I work at a uni, and we had this problem on 4 or webmail servers with over 10,000 IMAP users - all using different operating systems and browsers on and off campus. Adding MIME types solved the problem of downloading as dot ZIP so whilst in context of the original email MIME types having nothing to do with the uploading of attachments, I would suggest that MIME types DO play an effect in downloading attachments proven by the fact it solved the problem on more than one occasion. That said, here on campus and at about 6 other installs of SquirrelMail I use or manage, we don't have a problem with uploading Office 2007 file types so maybe there is something wrong with Lin's upload script? ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users