Code

Changes between Version 1 and Version 2 of CustomUploadAndFilters


Ignore:
Timestamp:
08/23/06 09:46:25 (8 years ago)
Author:
Enrico <rico.bl@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CustomUploadAndFilters

    v1 v2  
    33I've made custom file upload fields with some extra features: 
    44 
    5 * automatic upload_to path (based on app/model/field names) 
    6 * automatic renaming the filename based on the primary key 
    7 * maximum width and/or height for images 
     5 * automatic upload_to path (based on app/model/field names) 
     6 * automatic renaming the filename based on the primary key 
     7 * maximum width and/or height for images 
    88 
    99Also, I've created filters to automatically resize/crop images directly from templates. 
     
    1313There are similar approaches by [http://www.verdjn.com/ VERDJN]. 
    1414 
    15 == Custom upload fields: AutoFileField and AutoImageField == 
     15== Custom upload fields (AutoFileField and AutoImageField) == 
    1616 
    1717{{{ 
     
    231231}}} 
    232232 
    233 == Template filters: thumb and crop == 
     233== Template filters (thumb and crop) == 
    234234 
    235235Remember to adjust your paths to your project.