Skip to content

Instantly share code, notes, and snippets.

@chriskief
Created Oct 24, 2013
Embed
What would you like to do?
image = RestrictedFileField(content_types=['video/quicktime', 'application/pdf']) # limit to QuickTime and PDF
image = RestrictedImageField(max_upload_size=2621440) # limit to 2.5MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment