You are here

public function UploadHandlerInterface::getFilename in DropzoneJS 8

Same name and namespace in other branches
  1. 8.2 src/UploadHandlerInterface.php \Drupal\dropzonejs\UploadHandlerInterface::getFilename()

Reads, checks and return filename of a file being uploaded.

Parameters

\Symfony\Component\HttpFoundation\File\UploadedFile $file: An instance of UploadedFile.

Return value

string The sanitized filename.

Throws

\Drupal\dropzonejs\UploadException

1 method overrides UploadHandlerInterface::getFilename()
UploadHandler::getFilename in src/UploadHandler.php
Reads, checks and return filename of a file being uploaded.

File

src/UploadHandlerInterface.php, line 23

Class

UploadHandlerInterface
Interface UploadHandlerInterface.

Namespace

Drupal\dropzonejs

Code

public function getFilename(UploadedFile $file);