NetTalk Central

Author Topic: File type .docx not being recognized  (Read 3492 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
File type .docx not being recognized
« 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


peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: File type .docx not being recognized
« Reply #2 on: June 02, 2011, 02:57:48 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11238
    • View Profile
Re: File type .docx not being recognized
« Reply #3 on: June 02, 2011, 10:36:20 PM »
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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: File type .docx not being recognized
« Reply #4 on: June 03, 2011, 12:09:20 AM »
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