You are here

interface UploadHandlerInterface in DropzoneJS 8

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

Interface UploadHandlerInterface.

Hierarchy

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\dropzonejs
View 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

Namesort descending Modifiers Type Description Overrides
UploadHandlerInterface::getFilename public function Reads, checks and return filename of a file being uploaded. 1
UploadHandlerInterface::handleUpload public function Handles an uploaded file. 1