public void put(String key,File files[],String contentType,String customFileName) throws FileNotFoundException {
  if (key != null) {
    List<FileWrapper> fileWrappers=new ArrayList<FileWrapper>();
    for (    File file : files) {
      if (file == null || !file.exists()) {
        throw new FileNotFoundException();
      }
      fileWrappers.add(new FileWrapper(file,contentType,customFileName));
    }
    fileArrayParams.put(key,fileWrappers);
  }
}

public void put ( String key , File files [ ] , String contentType , String customFileName ) throws FileNotFoundException { if ( key != null ) { List < FileWrapper > fileWrappers = new ArrayList < FileWrapper > ( ) ; for ( File file : files ) { if ( file == null || ! file . exists ( ) ) { throw new FileNotFoundException ( ) ; } fileWrappers . add ( new FileWrapper ( file , contentType , customFileName ) ) ; } fileArrayParams . put ( key , fileWrappers ) ; } }
adds files array to the request with both custom provided file content - type and files name
