# How to access the image path which is uploaded through models?

**URL:** <https://forum.djangoproject.com/t/how-to-access-the-image-path-which-is-uploaded-through-models/9732>\
**Category:** Django Internals\
**Created:** [September 17, 2021, 6:40pm UTC](https://forum.djangoproject.com/t/how-to-access-the-image-path-which-is-uploaded-through-models/9732 "2021-09-17T18:40:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aditya2406](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/aditya2406/32/5724_2.png) [@Aditya2406](https://forum.djangoproject.com/u/Aditya2406)\
**Post date:** [September 17, 2021, 6:40pm UTC](https://forum.djangoproject.com/t/how-to-access-the-image-path-which-is-uploaded-through-models/9732/1 "2021-09-17T18:40:38Z")

</div>

```auto

class image_upload(models.Model):
    name = models.CharField(max_length=50)
    image = models.ImageField(upload_to='images')

```

I don’t know how can I access the file name which is uploaded by the user in the views.py

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [September 17, 2021, 8:08pm UTC](https://forum.djangoproject.com/t/how-to-access-the-image-path-which-is-uploaded-through-models/9732/2 "2021-09-17T20:08:58Z")

</div>

Please do not post the same question in multiple places in this forum. It does not help get your question answered any more quickly.
