Add code for resumable downloads from S3
This commit is contained in:
parent
d851feef6e
commit
0d89fd7f26
3 changed files with 17 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue