Skip to content

Commit

Permalink
Fixed #542 -- Document AWS_S3_MAX_MEMORY_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneier committed Aug 12, 2018
1 parent 2e4fec9 commit 9297273
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions docs/backends/amazon-S3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ Available are numerous settings. It should be especially noted the following:
authentication from generated URLs. This can be useful if your S3 buckets
are public.

``AWS_S3_MAX_MEMORY_SIZE`` (optional; default is ``0`` - do not roll over)
The maximum amount of memory a file can take up before being rolled over
into a temporary file on disk.

``AWS_QUERYSTRING_EXPIRE`` (optional; default is 3600 seconds)
The number of seconds that a generated URL is valid for.

Expand Down
3 changes: 0 additions & 3 deletions storages/backends/s3boto.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ class S3BotoStorage(Storage):
port = setting('AWS_S3_PORT')
proxy = setting('AWS_S3_PROXY_HOST')
proxy_port = setting('AWS_S3_PROXY_PORT')

# The max amount of memory a returned file can take up before being
# rolled over into a temporary file on disk. Default is 0: Do not roll over.
max_memory_size = setting('AWS_S3_MAX_MEMORY_SIZE', 0)

def __init__(self, acl=None, bucket=None, **settings):
Expand Down
3 changes: 0 additions & 3 deletions storages/backends/s3boto3.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ class S3Boto3Storage(Storage):
endpoint_url = setting('AWS_S3_ENDPOINT_URL')
region_name = setting('AWS_S3_REGION_NAME')
use_ssl = setting('AWS_S3_USE_SSL', True)

# The max amount of memory a returned file can take up before being
# rolled over into a temporary file on disk. Default is 0: Do not roll over.
max_memory_size = setting('AWS_S3_MAX_MEMORY_SIZE', 0)

def __init__(self, acl=None, bucket=None, **settings):
Expand Down

0 comments on commit 9297273

Please sign in to comment.