#5029: newforms FileField special file naming requirements
--------------------------------------------------+-------------------------
   Reporter:  Øyvind Saltvik <[EMAIL PROTECTED]>  |                Owner:  
jacob        
     Status:  new                                 |            Component:  
Uncategorized
    Version:  SVN                                 |           Resolution:       
        
   Keywords:  file naming newforms filefield      |                Stage:  
Unreviewed   
  Has_patch:  0                                   |           Needs_docs:  0    
        
Needs_tests:  0                                   |   Needs_better_patch:  0    
        
--------------------------------------------------+-------------------------
Changes (by [EMAIL PROTECTED]):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 Presently a FileField can have it's directory changed using date %m%d%y
 commands, it'd be great to be able to do something similar to the
 filename. For example:
 
 {{{attachment = models.FileField(upload_to='uploads/%s/' % self.project,
 filename='%s-%s.%s' % (self.id, self.attachment.original_filename,
 self.attachment.extension))}}}
 
 This would require extra attributes for each FileField, for the original
 filename and the extension, which may beyond the scope of this task...
 what thoughts do others have?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5029#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to