title: I couldn't upload images using Django Rest-framework
body: <p>I couldn't upload images using Django Rest-framework through <a href="https://www.getpostman.com/" rel="nofollow noreferrer">POSTMAN</a> , But I can do the same using <strong>Django Admin</strong>. When I try to debug the code, It's found that, <code>serializer.is_valid()</code> is always false.</p>
  
  <p>These are my code parts,</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>class imageuploadView(APIView):
      def post(self, request,format=None):
          serializer=ImageSerializer(data=request.data)
          print serializer
          if serializer.is_valid():
              serializer.save()
              return  Response(data={"detail":"Image Uploaded !"})#data
          else:
              return Response(data={"detail":"Not Uploaded"})
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class ImageUploadModel(models.Model):
      usr_id=models.IntegerField()
      upImg=models.ImageField(upload_to='media/')
      caption=models.CharField(max_length=50,default=None)
  </code></pre>
  
  <p><strong>serializer.py</strong></p>
  
  <pre><code>class ImageSerializer(serializers.ModelSerializer):
      upImg = serializers.ImageField(max_length=None,use_url=True)
      class Meta:
          model=ImageUploadModel
          fields=('usr_id','upImg','caption')
  </code></pre>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>STATIC_URL = '/static/'
  
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, "static"),
      '/static/',
  )
  
  MEDIA_ROOT = os.path.join(BASE_DIR,'media')
  
  MEDIA_URL = '/media/'
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
      ),
  }
  </code></pre>
  
  <p>Here is my <a href="https://drive.google.com/file/d/0B0DlE-Qi4Fu6UDNjb25SR1pYb0E/view?usp=sharing" rel="nofollow noreferrer">Source Code</a></p>