public function setAllowedFileExtensions($extensions)
    {
        $this->allowedFileExtensions = [];
        $token = ' ,;';
        $ext = strtok($extensions, $token);
        while ($ext !== false) {
            $this->allowedFileExtensions[] = $ext;
            $ext = strtok($token);
        }
    }