    private void writeFile(Path path, FileItem uploadedItem) throws IOException {
        if (!ioService.exists(path)) {
            ioService.createFile(path);
        }

        ioService.write(path, IOUtils.toByteArray(uploadedItem.getInputStream()));

        uploadedItem.getInputStream().close();
    }
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.