| 
                                                                            
                                                                                dshannon-theatomgroup
                                                                            - 
                                                                                11/21/2012 9:06:54 AM
                                                                            
                                                                         
                                                                        How can I prevent MIME type from being set to application/force-download? 
                                                                            I am working on a Kentico site. When retrieving a file using GetFile.aspx, on staging PDFs correctly have a inline disposition, and on production they incorrectly have a attachment disposition. (Open in browser on staging, as desired, and are saved to disk in production, the problem). Code files are identical, so it must be a configuration problem, presumably in IIS or Kentico.
 I have tried providing a disposition parameter to GetFile.aspx, but this fails because the MIME type is application/force-download (only happens on prod). I am not sure where this MIME type is coming from. It doesn't show up in IIS' MIME types list. The PDFs in Kentico's database have the correct (application/pdf).
 
 Whatever is different between production and staging I can't find. If anyone has any ideas of what it might be, I would appreciate the assistance.
 
 
                                                                            
                                                                         
 
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                         |