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

Removed hardcoded size limits for file uploads #74

Open
wants to merge 1 commit into
base: master-with-changes
Choose a base branch
from

Conversation

Shivangi-ch
Copy link
Contributor

Fixes #73

Changes done:

  • Added config in settings.py for size limits of different files types
  • replaced hardcoded values.

@Shivangi-ch
Copy link
Contributor Author

@mariobehling @hongquan can you please review.

'favicon':1024 * 1024 * config.getint('file_upload_limits', 'favicon', fallback=1),
'email_attachment':1024 * 1024 * config.getint('file_upload_limits', 'email_attachment', fallback=10),
'other': 1024 * 1024 * config.getint('file_upload_limits', 'other', fallback=10)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a new line at the end of file and also configure your code editor to do so automatically.

@hongquan
Copy link
Member

Sorry for late response (was busy last month). Please update @Shivangi-ch .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants