title: How can I send multipart/form-data that contains json object and image file via curl? And how can I treat it with Django Rest Framework?
body: <p>For example I tried that command via terminal:</p>
  
  <pre><code>curl -F "profileImage=@/home/user/image.jpg" -F "{'firstName':'hello'};type=application/json" http://127.0.0.1:8000/api/v1/signup/
  </code></pre>
  
  <p>Then I received the <code>request</code> object like that:</p>
  
  <pre><code>print request.FILES
  # &lt;MultiValueDict: {u'profileImage': [&lt;InMemoryUploadedFile: image.jpg (image/jpeg)&gt;]}&gt;
  print request.DATA
  # &lt;QueryDict: {u"{'firstName':'hello'};content-type": [u'application/json']}&gt;
  </code></pre>
  
  <p>The image is ok, but QueryDict is not represented correctly - all JSON file is a key and content-type 
  is a value.</p>
  
  <p>In Django use these parsers:</p>
  
  <pre><code>parser_classes = (MultiPartParser, FormParser, JSONParser,)
  </code></pre>
  
  <p>I necessary need to send text data via JSON structure .</p>