interface UploadHandlerInterface in DropzoneJS 8
Same name and namespace in other branches
- 8.2 src/UploadHandlerInterface.php \Drupal\dropzonejs\UploadHandlerInterface
Interface UploadHandlerInterface.
Hierarchy
- interface \Drupal\dropzonejs\UploadHandlerInterface
Expanded class hierarchy of UploadHandlerInterface
All classes that implement UploadHandlerInterface
1 file declares its use of UploadHandlerInterface
- UploadController.php in src/
Controller/ UploadController.php
File
- src/
UploadHandlerInterface.php, line 10
Namespace
Drupal\dropzonejsView source
interface UploadHandlerInterface {
/**
* Reads, checks and return filename of a file being uploaded.
*
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
* An instance of UploadedFile.
*
* @return string
* The sanitized filename.
*
* @throws \Drupal\dropzonejs\UploadException
*/
public function getFilename(UploadedFile $file);
/**
* Handles an uploaded file.
*
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
* The uploaded file.
*
* @return string
* URI of the uploaded file.
*
* @throws \Drupal\dropzonejs\UploadException
*/
public function handleUpload(UploadedFile $file);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UploadHandlerInterface:: |
public | function | Reads, checks and return filename of a file being uploaded. | 1 |
UploadHandlerInterface:: |
public | function | Handles an uploaded file. | 1 |