I'm new to django and python but I'm working on a new screen for a project I'm on. The screen is supposed to capture a bunch of text information as well as allow a user to browse and select a file on their local machine for uploading. I'm having a problem with the filename disappearing from the selected filename textbox, whenever I submit the screen to begin uploading the file and I have an error on the screen. If I have an error on the screen the screen is returned showng an error message, but without the original filename selected being displayed (empty filename textbox), which will force the user to reselect the file again. Has anyone had this problem before, and if so how do I prevent the filename from disappearing? I have tried making a copy of the request.FILES similar to the way I have done previously with a request.POST (request.POST.copy()) capturing the filename data when entering my view, but when I try to add it back to the request.FILES by doing this in my error logic branch:
request.FILES['filename'] = filename I get an AttributeError exception "can't set attribute". So since this doesn't work what is the proper way to do this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.