- Timestamp:
- 1 Dec 2011, 11:40:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7243 r7247 709 709 if size > MAX_UPLOAD_SIZE: 710 710 view.flash('Uploaded image is too big!') 711 return False 712 dummy, ext = os.path.splitext(upload.filename) 713 ext.lower() 714 if ext != '.jpg': 715 view.flash('jpg file extension expected.') 711 716 return False 712 717 upload.seek(0) # file pointer moved when determining size
Note: See TracChangeset for help on using the changeset viewer.