title: upload file to dropbox programmatically
body: <p>I am trying to upload a file to dropbox programmatically. Basically file can be uploaded through dropbox api. 
  But the question is how could I upload it by java rest based web service. The program to get the file is:</p>
  
  <pre><code>@Path("/file")
  public class UploadFile {
  
      @POST
      @Path("/upload")
      @Consumes(MediaType.MULTIPART_FORM_DATA)
      public Response uploadFile(
              @FormDataParam("file") InputStream uploadedInputStream,
              @FormDataParam("file") FormDataContentDisposition fileDetail) {
  
          Stringfilename = fileDetail.getFileName();
          .
          .
          .
      }
  }
  </code></pre>
  
  <p>its good to have any links which describe about this topic.</p>