code: @POST
      @Consumes(MediaType.MULTIPART_FORM_DATA)
      public Response upload(MultipartBody multipart){
          Attachment file = multipart.getAttachment("file");
          if (file == null) {
              return Response.status(400).entity("Missing file part").type(MediaType.TEXT_PLAIN).build();
          }
          InputStream fileStream = file.getObject(InputStream.class);
          String uploaded;
          try {
              uploaded = m_management.putTempStream(getContext(), fileStream);
              logger.debug("File uploaded: ", uploaded);
          } catch (ServerException e) {
              logger.error(e.toString());
              return handleException(e, false);
          }
          return Response.status(Response.Status.ACCEPTED).entity(uploaded).type(
                  MediaType.TEXT_PLAIN).build();
      }
docs: Uploads a file encoded in a multipart/form message.
  
  @param multipart
  the multiPart object containing the file to be uploaded
  @return a URI with the (custom) uploaded:// scheme and a unique
  identifier to be used future ingests. Returns 202 if request succeeds