[web2py] Re: Movie not loaded... problem with flash

2012-10-03 Thread LightOfMooN
I have the same problem, which I solved by this way: def download(): if (request.args(0) or '').endswith('swf'): from cStringIO import StringIO import os import time response.headers['Content-Disposition'] = '' filename =

[web2py] Re: Movie not loaded... problem with flash

2012-10-03 Thread LightOfMooN
oops :) def download(): if (request.args(0) or '').endswith('.swf'): import os response.headers['Content-Disposition'] = '' filename = os.path.join(request.folder,'uploads',request.args(0)) return response.stream(open(filename,'rb')) else: return