Saves a new file or a version of the file. If the file does not exists in the specified folder, it will create a new one. If does exists, it will be added as a new version. If this is a version and null is passed to fileDate, the underlying file from the old version will be copied to this version.
@param file
@param uploadedFile
@param categories
@param folder
@param user
@param respectFrontendRoles
@return File
@throws DotDataException
@throws DotSecurityException
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.