title: How to attach a zip file and Upload it to a REST service with PUT method using mulesoft
body: <p>Below is my code, I have used a mule requester to read the zip file an dthen I have used an attachment component and given the value as #[payload], and content type as multipart/x-zip but some how it is not working. can anyone please help me.</p>
  
  <p></p>
  
  <pre><code>        &lt;mulerequester:request  resource="file://src/test/resources/test/test.jpg?connector=File" 
  doc:name="Retrieve File"  config-ref="Mule_Requester"/&gt;
      &lt;set-attachment attachmentName="test" value="#[payload]" contentType="multipart/x-zip" doc:name="Attachment"/&gt;
  
      &lt;http:request config-ref="HTTP_RequestUpload_Configuration2" path="/dmf/projectname123_n1_1wer?sv=2014-02-14&amp;amp;sr=b&amp;amp;sig=AV2pJHnP4Zf%2Bk5wTX%2FuNnoBKOqyiIZhh8N%2BbsVNzJ18%3D&amp;amp;st=2018-03-09T18%3A56%3A23Z&amp;amp;se=2018-03-09T19%3A11%3A23Z&amp;amp;sp=rw" method="PUT" doc:name="HTTP"&gt;
          &lt;http:request-builder&gt;
              &lt;http:header headerName="x-ms-blob-type" value="BlockBlob"/&gt;
              &lt;http:header headerName="x-ms-version" value="2015-02-21"/&gt;
              &lt;http:header headerName="Content-Type" value="application/octet-stream"/&gt;
          &lt;/http:request-builder&gt;
      &lt;/http:request&gt;
      &lt;flow-ref name="importExecutionIdFlow" doc:name=""/&gt;
  &lt;/flow&gt;
  </code></pre>