title: Codename One - upload pictures to Filestack
body: <p>I want to upload pictures to Filestack (former Filepicker.io) using my CN1 app. I am using their REST API to do so. I am using the MultipartRequest class and after I run the app, I can see on their website that something is being uploaded, because the size of the file has the same size of the taken picture, but I can't see the picture. </p>
  
  <p>Is there something missing in my code?</p>
  
  <pre><code>public void pictureUpload() {
      String picture = Capture.capturePhoto(1024, -1);
      if(picture!=null){
          String filestack = "https://www.filestackapi.com/api/store/S3?key=MY_KEY&amp;filename=myPicture.jpg";
          MultipartRequest request = new MultipartRequest();
          request.setUrl(filestack);
          resquest.setPost(true);
          request.setHttpMethod("POST");
          try {
              request.addData("i", picture, "image/jpeg");
              request.setContentType("image/jpeg");
              NetworkManager.getInstance().addToQueue(request);
          } catch(IOException err) {
              err.printStackTrace();
          }
      }
  }
  </code></pre>