We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ca7c4 commit e98f2aeCopy full SHA for e98f2ae
server/gae-python/main.py
@@ -1,6 +1,6 @@
1
# -*- coding: utf-8 -*-
2
#
3
-# jQuery File Upload Plugin GAE Python Example 1.1.3
+# jQuery File Upload Plugin GAE Python Example 1.1.4
4
# https://github.com/blueimp/jQuery-File-Upload
5
6
# Copyright 2011, Sebastian Tschan
@@ -84,7 +84,11 @@ def handle_upload(self):
84
'/?key=' + urllib.quote(blob_key, '')
85
if (IMAGE_TYPES.match(result['type'])):
86
try:
87
- result['url'] = images.get_serving_url(blob_key)
+ result['url'] = images.get_serving_url(
88
+ blob_key,
89
+ secure_url=self.request.host_url\
90
+ .startswith('https')
91
+ )
92
result['thumbnail_url'] = result['url'] +\
93
THUMBNAIL_MODIFICATOR
94
except: # Could not get an image serving url
0 commit comments