title: Making File upload request not working using HttpPut
body: <p>I am using this code to make file upload request to server (PHP at backend), </p>
  
  <pre><code>public String makeFilePutUploadRequest(String url,File file,List&lt;BasicNameValuePair&gt; basicNameValuePairs) throws ClientProtocolException, IOException {
      String responseString = null;
  
          HttpPut httput = new HttpPut(url);
          MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create();
          //
          if (basicNameValuePairs.size() &gt; 0) {
              for (BasicNameValuePair nameValuePair : basicNameValuePairs) {
                  multipartEntityBuilder.addTextBody(nameValuePair.getName(), nameValuePair.getValue());
              }
          }
          // file
          multipartEntityBuilder.addPart("upfile", new FileBody(file));
          httput.setEntity(multipartEntityBuilder.build());
          HttpResponse response = httpClient.execute(httput);
          responseString = EntityUtils.toString(response.getEntity());
  
      //      Log.i(LOG_TAG, "response string recieved::" + responseString);
      return responseString;
  }
  </code></pre>
  
  <p>but at server side request is received but parameters are not set.</p>
  
  <p>I am using Laravel 4.1 at backend to process this request and if I use to get values using <code>Input::get('param')</code> I am getting null. And <code>Input::hasFile('upfile')</code> returns <code>false</code></p>