We recently implemented software licensing and updates/downloads service
using gae.
It's been working nicely until now.
Now suddenly the downloads stopped working.
We haven't made any changes to the code, the downloads just stopped.
Now when I try to download a file that's about 60mb, it downloads around
1.5mb and stops.
Relevant details:
class DatastoreFileModel(db.Model):
blob_key = blobstore.BlobReferenceProperty(required=True)
filename = db.StringProperty(required=True)
uploaded = db.DateTimeProperty(required=True)
hash = db.StringProperty(default='')
class FileUploadHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
blob_info = self.get_uploads()[0]
file_info = DatastoreFileModel(blob_key=blob_info.key(),
filename=blob_info.filename,
uploaded=datetime.now())
db.put(file_info)
class FileDownloadHandler(blobstore_handlers.BlobstoreDownloadHandler):
def get(self, file_id):
file_info = DatastoreFileModel.get_by_id(long(file_id))
if not file_info or not file_info.blob_key:
self.error(404)
return
self.send_blob(file_info.blob_key, save_as=True)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.