NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: peterH on June 01, 2011, 08:29:16 AM
-
On a netwebform I've included a number of links (using <a href=...>...</a>) to files on the disk.
.txt files displays ok
.pdf files displays ok
.doc .xls and .xlsx files prompts the user for open/download which is ok (although .xlsx wrongly shows the file as being a Microsoft Office Excel 97-2003 Worksheet)
The problem is with .docx files. FF simply displays them showing all kinds of garbage as if the file type is being interpreted as a text file whereas IE thinks it's a .zip file.
For this example I'm using C6.3 and NT5.26
Maybe NT has an internal list of file types that needs an update?
Peter
-
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=1258.0
-
Thanks Kevin.
I did do a search for .docx before posting - no luck.
Anyway, it seems that the check for file type has been moved to nethttp.clw and I've tried adding 'docx' but it doesn't change anything. Think we may need Bruce here.
Peter
-
Hi Peter,
I've tweaked nethttp.clw for the 5.28 build;
of 'doc'
orof 'docx'
return ('application/msword')
there's not really much more I can do. That's the content type which tells the browser what to do with the incoming file.
If that doesn't work out for you then I think I'd need to see an example. But give 5.28 a try when it comes out.
cheers
Bruce
-
Hi Bruce,
I already made the change to nethttp.clw - to no effect.
The problem seems to be browser related. FF shows garbage, IE recognizes the file (although as a wrong version) and so does Safari (correct version).
I spent a little time browsing the web and I found no pages offering downloads in .docx (or .xlsx) formats. Even MS offers only .doc and .xls (eg here http://www.microsoft.com/sam/en/us/downloads.aspx). This is in no way scientific but my conclusion so far is to simply avoid using .docx documents for download.
Peter