I currently have something like:
def my_view(request) if request.method == 'POST': form = MyForm(request.POST, request.FILES) if form.is_valid(): form.save() redirect() else: form = MyForm() return render_to_response('form.html', {'form': form})
If the form validation fails, all the fields associated with request.POST are re-populated, but the fields with the request. FILES are empty. Is this a known limitation of Django or is there something I can do to keep my file fields repeated?
source share