Developer forum

Forum » CMS - Standard features » Filepublish returns 404 for specific file extentions

Filepublish returns 404 for specific file extentions

Ton Martens
Reply

Hi,

Files with a 'SLDDRW' extention show up on the website using the Filepublish module. But when clicked on, a 404 page returns.

The url of the document is "..../Admin/Public/DWSDownload.aspx?File=Files%2fFiler%2fCAD_documentation%2fOil_mist%2fMistEliminator%2fSolidWorks%2fME-31.SLDDRW"

Other extensions do work (also when a SLDDRW file is renamed to another extention)

The file exists and isn't corrupt. 

This file DOES work, also a long extention : "..../Admin/Public/DWSDownload.aspx?File=Files%2fFiler%2fCAD_documentation%2fOil_mist%2fMistEliminator%2fSolidWorks%2fFan+Housing.SLDPRT"

What can be going on here?

Thanks,

Ton


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Ton

 

It is because the SLDDRW file extension is not known by IIS. You need to add it with an appropiate mime type in IIS.

 

This article describes how you can do that:

http://www.iis.net/configreference/system.webserver/staticcontent/mimemap

 

The appropiate mime type is application/octet-stream

 

See more here:

http://www.filesuffix.com/en/extension/slddrw

 

BR Nicolai

 
Ton Martens
Reply

Great! Thanks Nicolai.

 

 

You must be logged in to post in the forum