Changes between Version 65 and Version 66 of NewbieMistakes
- Timestamp:
- Jun 28, 2018, 9:14:41 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewbieMistakes
v65 v66 36 36 ==== Probable cause ==== 37 37 38 You might be missing the {{{request.FILES}}} argument when in tantiate your {{{Form}}} object.38 You might be missing the {{{request.FILES}}} argument when instantiate your {{{Form}}} object. 39 39 40 40 ==== Solution ==== … … 45 45 form = MyForm(request.POST, request.FILES) 46 46 }}} 47 48 ==== Probable cause #2 ==== 49 50 You might be missing {{{enctype}}} attribute on your form. 51 52 === Solution === 53 54 Make 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 47 60 48 61 == URLconf include() misbehaving ==