You have to tell web2py what do to with the file. If the file is in static and served by web2py you should download it with
http://..../filename?attachment if it is served by your controller you must set the reponse.header['content-disposition']. On Jan 29, 8:25 pm, LightDot <[email protected]> wrote: > This brings back memories. I believe I may have had a similar problem > recently. Apache & mod_wsgi, web2py 1.99.2. > > I wanted to use css3pie to overcome IE8 and IE9 lack of CSS3 support. IE8 > is easy going, but IE9 strictly demands a correct file-type for the PIE.htc > behaviour file in order to use it. So I did all that, had the correct > content-type settings in Apache's configuration, got IE8 going just fine. > But IE9 was lying dead in the water. Hm. I tried all possible solutions, > even had Apache force content-type for an entire directory (didn't realize > Apache has that many content-type enforcing possibilities), had css trigger > different IE9 compatibility modes, tried god knows what to nudge IE9 into > accepting PIE.htc. Nothing! And than it finally struck me... > > My PIE.htc still opens as text in browser. Wait a minute... It shouldn't do > that. It should download. > > Once I moved PIE.htc file out of web2py entirely (it was in > static/something/something), Apache content type was taken into account and > it started working right away. This was one of *those* head scrathing bugs > that make me chuckle afterwards and which I usually remember for a while. :) > > If static files are indeed meant to be served before hitting the app code, > then it must be a bug somewhere. Apache content-type doesn't seem to apply. > Or does using web2py routes cause this? I had /someapp/static routed to > /static. > > Anyway... > > AddType text/x-component .htc

