Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants