If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Unable to download .docx document on windows server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-08, 13:11
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
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
Reply With Quote
  #2 (permalink)  
Old 09-01-08, 05:42
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
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
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 09-02-08, 12:20
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
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? ***
Reply With Quote
  #4 (permalink)  
Old 10-01-08, 17:31
lisarenate lisarenate is offline
Registered User
 
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
Reply With Quote
  #5 (permalink)  
Old 10-16-08, 15:56
Murat Matur Murat Matur is offline
Registered User
 
Join Date: Oct 2008
Posts: 9
Reply With Quote
  #6 (permalink)  
Old 10-17-08, 13:29
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
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? ***
Reply With Quote
  #7 (permalink)  
Old 08-27-09, 22:39
Nhoel Nhoel is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On