#8421: FileField traps error when uploading non-ascii filename
---------------------------------+------------------------------------------
Reporter: mizutori | Owner: nobody
Status: closed | Milestone: 1.0
Component: Forms | Version: 1.0-beta-1
Resolution: worksforme | Keywords: FileField upload files
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------+------------------------------------------
Changes (by julien):
* status: new => closed
* resolution: => worksforme
Comment:
I tried all cases (1 to 4) you've enumerated and I could not reproduce the
issue. I you keep having this problem in the latest trunk, please submit a
test case as well.
Below is the code I used:
{{{
from django import forms
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
class UploadForm(forms.Form):
attach_1 = forms.FileField(required = False)
attach_2 = forms.FileField(required = False)
def test_upload(request):
if request.method == 'POST':
form = UploadForm(request.POST,request.FILES)
if form.is_valid():
return HttpResponseRedirect('/ticket8421/success/')
else:
form = UploadForm()
return render_to_response('ticket8421/upload.html', { 'form': form })
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8421#comment:4>
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
-~----------~----~----~----~------~----~------~--~---