title: Django REST Framework image upload
body: <p>I have model Product: </p>
  
  <pre><code>def productFile(instance, filename):
      return '/'.join( ['products', str(instance.id), filename] )
  
  class Product(models.Model):
      ...
  
      image = models.ImageField(
          upload_to=productFile,
          max_length=254, blank=True, null=True
      )
      ...
  </code></pre>
  
  <p>Then I have serializer:</p>
  
  <pre><code>class ProductSerializer(serializers.ModelSerializer):
      class Meta:
          model = Product
          fields = (
              ...
              'image',
              ...
          )
  </code></pre>
  
  <p>And then I have views:</p>
  
  <pre><code>class ProductViewSet(BaseViewSet, viewsets.ModelViewSet):
      queryset = Product.objects.all()
      serializer_class = ProductSerializer
  </code></pre>
  
  <p>How I can upload image with Postman? What is the best practices to upload image to model? Thank you.</p>