public function addStorageExceededFormError(Form $form, $fileSize, Workspace $workspace)
    {
        $filesize = $this->ut->getRealFileSize($fileSize);
        //we want how many bites and well...
        $maxSize = $this->ut->getRealFileSize($workspace->getMaxStorageSize());
        //throw new \Exception($maxSize);
        $usedSize = $this->ut->getRealFileSize(
            $this->container->get('claroline.manager.workspace_manager')->getUsedStorage($workspace)
        );

        $storageLeft = $maxSize - $usedSize;
        $fileSize = $this->ut->formatFileSize($fileSize);
        $storageLeft = $this->ut->formatFileSize($storageLeft);

        $translator = $this->container->get('translator');
        $msg = $translator->trans(
            'storage_limit_exceeded',
            array('%storageLeft%' => $storageLeft, '%fileSize%' => $fileSize),
            'platform'
        );
        $form->addError(new FormError($msg));
    }