光阴似箭催人老,日月如移越少年。
If you need to upload files, you need to specify the enctype="multipart/form-data" attribute in the form and change the form to:
enctype="multipart/form-data"
<form action="{% url 'backend:upload' %}" method="post" enctype="multipart/form-data"> {% csrf_token %} {{ form }} <button type="submit">Submit</button> </form>
Please read the document content carefully, it mentions this.
If you need to upload files, you need to specify the
enctype="multipart/form-data"
attribute in the form and change the form to:Please read the document content carefully, it mentions this.