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
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
Please do not post the same question in multiple places in this forum. It does not help get your question answered any more quickly.