Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2004
    Posts
    96

    Unanswered: Unable to download .docx document on windows server

    Hi,

    I have a system allowing users to upload files to my site.

    Those files are then available to download using a link, for instance www.mysite.com/uploads/document.doc

    This works perfectly until someone uploads a word document with .docx extension. The file is uploaded fine but when using the link to download them it gives a 404 error.
    I have tried with various names, with space and not in the name of the file etc but it is all the same.

    Does any one know why and if there is a fix to this?

    many thanks

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Just for clarification, is this what you're saying:

    If I upload doc1.docx and then try and download it via www.mysite.com/uploads/doc1.docx I would get a 404 error?
    George
    Home | Blog

  3. #3
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Make sure that you have docx defined as a valid MIME type in IIS. You need to register the MIME type so IIS understands what it's supposed to put in the header when serving the file.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  4. #4
    Join Date
    Apr 2004
    Location
    Boise, ID, USA
    Posts
    3
    Oliflorence, did this fix the problem? The same thing is also happening to me. Thanks.

    Lisa

  5. #5
    Join Date
    Oct 2008
    Posts
    9

  6. #6
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    That's for defining the appropriate version of the .NET runtime. This isn't a .NET issue, it's an IIS issue.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  7. #7
    Join Date
    Aug 2009
    Posts
    1
    @teddy - it worked perfectly !
    i just register the xml files on the iis server, then restarted the iis.
    everything works fine after that.

    thanks! i'll blog about this.

    -Nhoel of Keywordspeak.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •