#8593: Image upload in Windows changes filename to lowercase
-------------------------------------------+--------------------------------
          Reporter:  robvdl                |         Owner:  nobody             
   
            Status:  new                   |     Milestone:                     
   
         Component:  File uploads/storage  |       Version:  SVN                
   
        Resolution:                        |      Keywords:  upload image 
lowercase
             Stage:  Unreviewed            |     Has_patch:  0                  
   
        Needs_docs:  0                     |   Needs_tests:  0                  
   
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by SmileyChris):

 Writing with the original casing will be more difficult (this is done by
 `django.utils._os.safe_join`) so just normalizing the case seems the
 easiest course of action.

 Easiest solution seems to be using `os.path.normcase` in the
 `get_directory_name` and `get_filename` methods of `FileField`.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8593#comment:2>
Django <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 django-updates@googlegroups.com
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