int i = 0;
for (FileItemStream uplFile : getListFiles()) {
String fileName = getUploadedFileName(uplFile);
ByteArrayOutputStream os = getListFileStreams().get(i);
if (os == null) {
throw new ConnectorException("Unable to save uploaded file");
}
checkUploadFile(fileName, os);
File newFile = getNewFile(fileName, dirCurrent, FileActionEnum.WRITE);
getFs().createFile(newFile, os);
listeResponseSelect.add(_hash(newFile));
i++;
}
} catch (ConnectorException e) {
throw e;
} catch (Exception e) {
logger.error("", e);
throw new ConnectorException("Unable to save uploaded file");
}
putResponse("select", listeResponseSelect);
_content(dirCurrent, true);