Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit thumbnail size to 5mb #86

Merged
merged 1 commit into from Dec 22, 2015
Merged

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Dec 21, 2015

As part of AD-1530, it was realized that our current limit for user selectable thumbnails is 25GB. This PR sets a more sensible limit, but since we now support thumbnail generation for user selectable thumbnails, it wouldn't hurt to allow higher limits than 5MB.

@diminator @sbellem It seems like S3 rejects signature creation when the file limit is not set to 25GB, which makes these uploads fail.

You'll see that this request works:
screen shot 2015-12-18 at 6 34 58 pm

But this one does not:
screen shot 2015-12-18 at 6 35 22 pm

@diminator
Copy link
Contributor

@sbellem @sohkai
This shouldnt be too difficult:

maybe add the 5MB to spool/settings.py: AWS_MAX_SIZE = [25000000000, 500000, 50000000]

@sohkai you can already verify if it works with 500k or 50M

@sohkai
Copy link
Contributor Author

sohkai commented Dec 22, 2015

@diminator Changing this setting works like a charm. Made https://github.com/ascribe/spoolio/pull/34 for this.

sohkai added a commit that referenced this pull request Dec 22, 2015
@sohkai sohkai merged commit 2bb04ff into master Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants