Changes between Version 2 and Version 3 of CookBookValidateImageWeight
- Timestamp:
- Feb 27, 2006, 4:56:30 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookValidateImageWeight
v2 v3 8 8 Here we check that the image under 100 kb. 9 9 {{{ 10 #!python 10 11 def isValideSize(field_data, all_data): 11 12 if len(field_data["content"]) > 100000: # 100,000 bytes