public long getFileBytesMaxUploadSize(CmsObject cms) {

        int maxFileSize = getFileMaxUploadSize();
        long maxFileSizeBytes = maxFileSize * 1024;
        // check if current user belongs to Admin group, if so no file upload limit
        if ((maxFileSize <= 0) || OpenCms.getRoleManager().hasRole(cms, CmsRole.VFS_MANAGER)) {
            maxFileSizeBytes = -1;
        }
        return maxFileSizeBytes;
    }
public long getFileBytesMaxUploadSize ( CmsObject cms ) { int maxFileSize = getFileMaxUploadSize ( ) ; long maxFileSizeBytes = maxFileSize * 1024 ; if ( ( maxFileSize <= 0 ) || OpenCms . getRoleManager ( ) . hasRole ( cms , CmsRole . VFS_MANAGER ) ) { maxFileSizeBytes = - 1 ; } return maxFileSizeBytes ; }
Returns the value (in bytes) for the maximum file upload size of the current user.<p>

@param cms the initialized CmsObject

@return the value (in bytes) for the maximum file upload size