Currently I 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})
On a form validation error, all the fields associated with request.POST are repopulated but the fields with request.FILES are empty. Is this a known Django limitation or is there something I can do to my the file fields repopulate?