Add code for resumable downloads from S3

This commit is contained in:
Joseph Schorr 2014-07-02 00:39:59 -04:00
parent d851feef6e
commit 0d89fd7f26
3 changed files with 17 additions and 2 deletions

View file

@ -83,6 +83,9 @@ class S3Storage(BaseStorage):
key.set_contents_from_string(content, encrypt_key=True)
return path
def get_supports_resumable_downloads(self):
return True
def get_direct_download_url(self, path, expires_in=60):
self._initialize_s3()
path = self._init_path(path)