File outFile = new File(tempDir, fileName);
copyPartToFile(part, outFile);
addFileToFilesList(files, fileIndex++, outFile);
} else if (part.getName().equals("visibilitySource")) {
String visibilitySource = IOUtils.toString(part.getInputStream(), "UTF8");
if (!graph.isVisibilityValid(new Visibility(visibilitySource), authorizations)) {
invalidVisibilities.add(visibilitySource);
}
addVisibilityToFilesList(files, visibilitySourceIndex++, visibilitySource);
}
}