code: public void copyFrom(FileItem file) throws IOException, InterruptedException {
          if(channel==null) {
              try {
                  file.write(writing(new File(remote)));
              } catch (IOException e) {
                  throw e;
              } catch (Exception e) {
                  throw new IOException(e);
              }
          } else {
              try (InputStream i = file.getInputStream();
                   OutputStream o = write()) {
                  org.apache.commons.io.IOUtils.copy(i,o);
              }
          }
      }
docs: Place the data from {@link FileItem} into the file location specified by this {@link FilePath} object.