I'm trying to save a user image in my database. Here below is my input form:

```
<form method="POST" action="/savedata/">
{% csrf_token %}
<input id="file-upload" type="file"  accept="image/*" name='profileimg' />
<input type="submit" value="upload">
</form>

```

How could I save the selected image in the database using *form submit*

**My model class:**

```
class usertab(models.Model):
    img = models.ImageField(upload_to='user_img')

```

I am able to save an image using *superuser* but I need to save this using submission form, how could I possibly do it?

many thanks in advance.