private void uploadToConfluence(String fileName, String categoryName, String projectName) {
		if (isMp4(fileName)) {
			System.out.println("MP4 FILE DETECTED");
			uploadMp4File(projectName, categoryName, fileName);
		} else {
			boolean fileUploaded = false;
			int counter = 1;
			while (!fileUploaded && counter <= ATTEMPTS_TO_UPLOAD) {
				cm.addAttatchmentToPage(projectName, categoryName, fileName);
				fileUploaded = cm.fileWasUploadedBefore(projectName, categoryName, fileName);
				System.out.println("File uploaded [" + fileUploaded + "]");
				if(fileUploaded)
					uploadedFiles.add(fileName);
				counter++;
				if (counter == ATTEMPTS_TO_UPLOAD+1) {
					notUploadedFiles.add(fileName);
					System.out.println("NOT UPLOADED FILES: ");
					for (int j = 0; j < notUploadedFiles.size(); j++) {
						System.out.println(j + " " + notUploadedFiles.get(j));
					}
				}
			}
		}
	}