#9396: FILE_UPLOAD_TEMP_DIR ignored on Windows?
---------------------------------------------------+------------------------
          Reporter:  spkane                        |         Owner:  nobody     
                                      
            Status:  closed                        |     Milestone:  post-1.0   
                                      
         Component:  Database layer (models, ORM)  |       Version:  1.0        
                                      
        Resolution:  invalid                       |      Keywords:  
FILE_UPLOAD_TEMP_DIR, SuspiciousActivity, Windows
             Stage:  Unreviewed                    |     Has_patch:  1          
                                      
        Needs_docs:  0                             |   Needs_tests:  0          
                                      
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by spkane):

 While responding to this I figured out the issue. I would say that it is a
 bug in the book (The Definitive Guide to Django). Or at least something
 that should have included a caveat for folks not on Unix systems. In the
 author model the book has you write, it defined the field AND the upload
 location in the code:

 headshot = models.ImageField(upload_to='/tmp')

 which was not at all apparent multiple chapters later when I started to
 use that field. I'm not even sure it would work as is, since I believe
 that Django will trigger an "Suspicous Activity" warning because this is
 outside of the Django project hierarchy.

 However, the general problem is fixed. Thank you for the detailed
 response.

 Sean

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9396#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 [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