image upload and CreateView based view
Uploaded files are stored in request.FILES
, not in request.POST
. And don't forget to add enctype="multipart/form-data"
to your <form>
tag.
And I think form_valid
method is for validation, not for data saving, isn't it?