Changes between Version 65 and Version 66 of NewbieMistakes


Ignore:
Timestamp:
Jun 28, 2018, 9:14:41 AM (6 years ago)
Author:
paltman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewbieMistakes

    v65 v66  
    3636==== Probable cause ====
    3737
    38 You might be missing the {{{request.FILES}}} argument when intantiate your {{{Form}}} object.
     38You might be missing the {{{request.FILES}}} argument when instantiate your {{{Form}}} object.
    3939
    4040==== Solution ====
     
    4545form = MyForm(request.POST, request.FILES)
    4646}}}
     47
     48==== Probable cause #2 ====
     49
     50You might be missing {{{enctype}}} attribute on your form.
     51
     52=== Solution ===
     53
     54Make sure you have the {{{enctype}}} attribute on your form as follows:
     55
     56{{{
     57<form method="post" action="/some/url/" enctype="multipart/form-data">
     58}}}
     59
    4760
    4861== URLconf include() misbehaving ==
Back to Top