title: (CURL, PHP) Uploading files with PUT request, How do I process this?
body: <p>this is what i have in process.php</p>
  
  <pre><code>parse_str(file_get_contents("php://input"),$upload_data);
  if (isset($upload_data)) {
     print_r($upload_data);
     exit;
  }
  </code></pre>
  
  <p>this is how i query to server using curl.</p>
  
  <pre><code>weldan@prindu:~$ curl -X PUT -H "X-TOKEN: test123" -F filedata=@/home/weldan/Pictures/Cool-Pictures1.jpg  http://host.tld/process.php
  Array
  (
      [------------------------------22031b6e799c
  Content-Disposition:_form-data;_name] =&gt; "filedata"; filename="Cool-Pictures1.jpg"
  Content-Type: image/jpeg
  
  ���
  )
  </code></pre>
  
  <p>so that how i know there is uploaded file there. </p>
  
  <p>current problem is, how do I process this file like $_FILES variable?</p>
  
  <p>open for other way to achieve this too.</p>
  
  <p>Thanks</p>