-
Notifications
You must be signed in to change notification settings - Fork 66
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
models: per bucket file size limits #61
models: per bucket file size limits #61
Conversation
FILES_REST_DEFAULT_MAX_FILE_SIZE = None | ||
"""Default maximum file size for a bucket.""" | ||
|
||
FILES_REST_SIZE_LIMITERS = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/FILES_REST_SIZE_LIMITERS/FILES_REST_SIZE_LIMITER/
plural -> singular ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or alternatively the doc text should be in plural
obj = ObjectVersion.create(bucket, key) | ||
obj.set_contents(uploaded_file, size=content_length) | ||
db.session.commit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you still need a db.session.commit()
outside the with
-statement?
* INCOMPATIBLE Changes the file size limiter interface. * NEW Adds a per bucket maximum file size limit. * File size limits are now checked while writing the object. Signed-off-by: Sami Hiltunen <sami.mikael.hiltunen@cern.ch>
@lnielsen I've fixed the issues you found |
Signed-off-by: Sami Hiltunen sami.mikael.hiltunen@cern.ch