modifié: superTornado.py

modifié:         video.html
This commit is contained in:
sidya82 2014-02-28 02:57:46 +01:00
parent 46a6e08ed0
commit e42a199d4f
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class AJAXHandler(BaseHandler):
def post(self): def post(self):
with open("image/temp.jpg", 'rb') as f: with open("image/temp.jpg", 'rb') as f:
data = f.read() data = f.read()
self.set_header('Content-type', 'image/jpg') self.set_header('Content-type', 'image/jpeg')
self.write(data) self.write(data)
self.finish() self.finish()

View File

@ -11,7 +11,7 @@
$.ajax({ $.ajax({
type: "POST", type: "POST",
url:'/ajax', url:'/ajax',
contentType: "image/jpg", contentType: "image/jpeg",
success: function(data){ success: function(data){
$('#image').html(data)} $('#image').html(data)}
}); });