String fileName = upload.getClientFileName();
String fileType = fileExt(upload.getClientFileName());
cleanUserFolder(userName);
String usrFolder = getTempFolder(userName);
String destPath = node.getNodePath();
upload.writeTo(new File(usrFolder
+ pathSeparator
+ upload.getClientFileName()));
// File writed in temp folder
if (fileType != null && !fileType.equals("")
&& fileName != null