#10396: Django File Upload /Image Upload Forms are broken with Safari (3 and 
beta
4)
-------------------------------------------+--------------------------------
          Reporter:  sir...@gmx.de         |         Owner:  nobody
            Status:  new                   |     Milestone:        
         Component:  File uploads/storage  |       Version:  1.0   
        Resolution:                        |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  0     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by sir...@gmx.de):

 Hi,

 didn't work out.

 Heres the new form:
 {{{
 class UploadImageForm(forms.Form):
     funny_name = forms.ImageField()

     def clean_up_filename( self ):
         name = self.cleaned_data["funny_name"]
 }}}

 and heres the generated HTML

 {{{
    <form  enctype="multipart/form-data" action="/images/upload/11/1/"
 method="POST">
         <p><label for="id_funny_name">Funny name:</label> <input
 type="file" name="funny_name" id="id_funny_name" /></p>
                 <div class="submit">
                         <input type="submit" value="Upload Image" />
                 </div>
         </form>
 }}}

 Note that it is the second form on this page. The names do not clash and
 they POST to different adresses.

 Any more ideas?

 Greetings,
 SirVer

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10396#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 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to