SOLVED: django raises MultiValueDictKeyError at / 'file'

highcenburg

Vicente G. Reyes

Posted on September 12, 2019

SOLVED: django raises MultiValueDictKeyError at / 'file'

I'm trying to create a view for uploading a .csv file and parsing it on the template but it's returning a

MultiValueDictKeyError at /

'file'

The template has


<form method="POST" enctype="multipart/form-data">{% csrf_token %}
<div class="file-field input-field">
<div class="btn">
<span>Upload a CSV FILE</span>
<input type="file" name="file">
</div>
<div class="file-path-wrapper">
 <input class="file-path
💖 💪 🙅 🚩
highcenburg
Vicente G. Reyes

Posted on September 12, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related