title: HTTP POST multipart/form-data upload file using Java on the Asana API
body: <p>How can I use purely java.net to <a href="https://asana.com/developers/api-reference/attachments#upload" rel="nofollow">attach a file to a task using the Asana API</a>?</p>
  
  <p>Specifically, how do I make a well formed HTTP POST multipart/form-data encoded request to the Asana API in order to successfully attach a file to a task?</p>