public function importUploadedFile(UploadedFile $uploadedFile = null, $fr = false)
    {
        if ($uploadedFile === null) {
            $result = self::E_PHP_NO_FILE;
        } elseif (!$uploadedFile->isValid()) {
            $result = $uploadedFile->getError();
        } else {
            $result = $this->import($uploadedFile->getPathname(), $uploadedFile->getClientOriginalName(), $fr);
        }

        return $result;
    }