In html I can create a multiple select form like this :
<form method="post" action="" enctype="multipart/form-data">{% csrf_token %}
<input type="file" name="image" multiple />
<input type="submit" value="Submit" />
</form>
This gives me a browse button and I can select multiple files
How to create this form in django. I mean that can select multiple files
Here I want to save the each file in database with id. Is this the right way of doing ? With this view its giving me error saying init() got unexpected arguement instance.
Aucun commentaire:
Enregistrer un commentaire