title: How to stop Folder name to Store in Databse in Django?
body: <p>I am uploading Image in my specific folder, but it's storing in my database table also, Please let me know how I can stop folder name to store in database. Currently my image is storing in my database table in this format <code>thumb/20/08/18/image.jpeg</code>, i don't want this <code>thumb/20/08/18</code> to store in my database table, because it's my folder name with year, date and month.</p>
  <p>Here is my <code>models.py</code> file..</p>
  <pre><code>class Product(models.Model):
      name=models.CharField(max_length=225)
      slug=models.SlugField(max_length=225, unique=True)
      thumb_image= models.ImageField(upload_to='thumb/%y/%m/%d/', default=None)
  
      def __str__(self):
          return self.name
  </code></pre>