I want to enable my app users to download a binary file ( actually a
symbian mobile application). I need to keep track of the number of
downloads so I can't simply make it a static file. I've created a
request handler that looks like this
class DownloadMobApp(webapp.RequestHandler):
@login_required
def get (self):
download_filename = 'test.sis'
self.response.headers['Content-type'] = 'application/
vnd.symbian.install'
self.response.headers['Content-disposition'] = 'attachment;
filename=' + download_filename
path = os.path.join(os.path.dirname(__file__), 'mobile_app/
test.sis')
f = open(path,'rb')
self.response.out.write(f.read())
f.close()
Any ideas why Internet Explorer 6/7. doesn't like my request handler
response?
This works just fine for firefox,safari, chrome and the Nokia phone
browser but NOT IE. With IE the download window opens but I get an
immediate error “IE cannot download..... IE was not able to open the
internet site....” But my app appears to have responded OK with no
errors.
(Using IE and my app running on the dev server the request works
works fine.)
Many thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---