Created
May 8, 2014 15:19
-
-
Save ethanholda/658f9a15b1d607dba1ef to your computer and use it in GitHub Desktop.
File upload field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.form_extra_fields = { | |
'image_file': FileUploadField(label="Upload Image", | |
base_path=self.base_path + "/images", | |
allowed_extensions=['jpg', 'JPG', 'jpeg', 'JPEG'], | |
validators=[validate_image]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment