public void put(String key,File file,String contentType,String customFileName) throws FileNotFoundException {
  if (file == null || !file.exists()) {
    throw new FileNotFoundException();
  }
  if (key != null) {
    fileParams.put(key,new FileWrapper(file,contentType,customFileName));
  }
}

public void put ( String key , File file , String contentType , String customFileName ) throws FileNotFoundException { if ( file == null || ! file . exists ( ) ) { throw new FileNotFoundException ( ) ; } if ( key != null ) { fileParams . put ( key , new FileWrapper ( file , contentType , customFileName ) ) ; } }
adds a file to the request with both custom provided file content - type and file name
