get original name of an uploaded file associated with this element
if attribute multiple is set the name of the first file is returned

@return string
775429
public function getValue()
    {
        $file = $this->getFile();

        if($file instanceof UploadedFile) {
            return $file->getOriginalName();
        }

        if(is_array($file) && $file[0] instanceof UploadedFile) {
            return $file[0]->getOriginalName();
        }

        return null;
    }
238135
function getBasename()
    {
        $filename  = $this->getFilename();
        $extension = $this->getExtension();

        return ($extension === '' || $extension === null)
            ? $filename
            : $filename.'.'.$extension;
    }
721021
public function getName()
    {
        if (is_null($this->name)) {
            $this->name = is_null($this->getFile()) ? '' : $this->getFile()->getBasename();
        }
        return $this->name;
    }
202365
private function _encoded_filename()
    {
        $ext = strtolower(pathinfo($this->source_file, PATHINFO_EXTENSION));
        $encode = md5($this->source_file . http_build_query($this->url_params));
        
        // Build the parts of the filename
        $encoded_name = $encode . '-' . $this->source_modified . '.' . $ext;
        
        return $encoded_name;
    }
61023
public function getFileContent()
    {
        $file = $this->getAttribute('file');
        if (empty($file) && !$this->getIsNewRecord()) {
            $file = $this->refreshFile();
        }

        if (empty($file)) {
            return null;
        } elseif ($file instanceof Download) {
            $fileSize = $file->getSize();
            return empty($fileSize) ? null : $file->toString();
        } elseif ($file instanceof UploadedFile) {
            return file_get_contents($file->tempName);
        } elseif (is_string($file)) {
            if (file_exists($file)) {
                return file_get_contents($file);
            }
            throw new InvalidParamException("File '{$file}' does not exist.");
        }

        throw new InvalidParamException('Unsupported type of "file" attribute.');
    }
1085597
public function getFilename()
    {
        /** @var BaseConverter $converter */
        $converter = $this->getDocument()->getConverter();
        return $converter->getDestinationFilenameRelativeToProjectRoot($this->getDocument()->getFile());
    }
360466
public function getIndexedFilename()
    {
        $extension = strtolower($this->getMimeType());
        $extension = explode('/', $extension);
        $extension = $extension[1];

        return $this->uniqueName . $this->getImageIndex() . '.' . $extension;
    }
306407
public function getUploadedFiles()
    {
        if ($this->_uploadedFiles === null) {
            $this->getParsedBody(); // uploaded files are the part of the body and may be set while its parsing
            if ($this->_uploadedFiles === null) {
                $this->_uploadedFiles = $this->defaultUploadedFiles();
            }
        }
        return $this->_uploadedFiles;
    }
859267
protected function getAttributeName()
    {
        if ($this->getParamName() && ('single' === $this->get('datamode'))) {
            return $this->getMetaModel()->getAttribute($this->get('single_attr_id'))->getName();
        }

        if ($this->getParamName() && ('multi' === $this->get('datamode'))) {
            $firstAttribute  = $this->getMetaModel()->getAttribute($this->get('first_attr_id'));
            $secondAttribute = $this->getMetaModel()->getAttribute($this->get('second_attr_id'));

            $latName = $firstAttribute->getName();
            $lngName = $secondAttribute->getName();

            return $latName . '/' . $lngName;
        }

        return null;
    }
656056
public function getName() {
		if ($this->_name === null) {
			$name = get_class($this);
			$pos = strrpos($name, '\\');
			if ($pos !== false) {
				$name = substr($name, $pos + 1);
			}
			if (preg_match('/^Twig([A-Za-z]+)Extension$/', $name, $matches)) {
				$name = $matches[1];
			}
			$this->_name = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name));
		}
		return $this->_name;
	}
22154
public function getFileName($source_name, $type, $tmp_name, $index, $content_range, FileUpload $upload)
    {
        $this->filesystem = $upload->getFileSystem();
        $this->pathresolver = $upload->getPathResolver();

        $source_name = $this->getSluggedFileName($source_name);
        $uniqueFileName = $this->getUniqueFilename($source_name, $type, $index, $content_range);

        return $this->getSluggedFileName($uniqueFileName);
    }
663281
public function getFilename() : ?string 
    {
        if ( ! $this->hasFilename()) {
            $this->setFilename($this->getDefaultFilename());
        }
        return $this->filename;
    }
986836
public function getUniqueFilename()
	{
		$pathInfo = pathinfo($this->filename);
		$filename = $pathInfo['filename'];
		$extension = $pathInfo['extension'];
		$increment = 1;
		while($this->fileExists($filename . "_" . $increment, $extension))
		{
			$increment++;
		}
		$this->filename = $filename . "_" . $increment . '.' . $extension;

		return $this;
	}
813416
protected function renderSetOriginalFileName()
    {
        $columnsSetters = array();
        if ($this->getParameter('use_origin_fileName')) {
            foreach ($this->getColumns() as $column) {
                $columnsSetters[$column] = $this->getColumnSetter($this->getOriginalNameColumn($column));
            }

            if (count($columnsSetters)) {
                return $this->renderTemplate("setOriginalFileName", array('columnsSetters' => $columnsSetters));
            }
        }
        return '';
    }
510733
public function generateFilename()
    {
        $filename = $this->label().' '.date('Y-m-d H-i-s');
        $extension = $this->generateExtension();

        if ($extension) {
            return $filename.'.'.$extension;
        } else {
            return $filename;
        }
    }
566168
public function filename()
    {
        $processor = Hash::get($this->settings, 'nameCallback', null);
        if (is_callable($processor)) {
            $numberOfParameters = (new \ReflectionFunction($processor))->getNumberOfParameters();
            if ($numberOfParameters == 2) {
                return $processor($this->data, $this->settings);
            }

            return $processor($this->table, $this->entity, $this->data, $this->field, $this->settings);
        }

        return $this->data['name'];
    }
482735
public function getFileDisplayName()
    {
        $base = str_replace(DIRECTORY_SEPARATOR, '/', DIR_BASE);
        if (strpos($this->filename, $base) === 0) {
            $path = substr($this->filename, strlen($base) + 1);
        } else {
            $path = $this->filename;
        }

        return str_replace('/', DIRECTORY_SEPARATOR, $path);
    }