RockLobsterInc\FormDataTree

FileInterface{} │ interface │ CF7 1.0

Interface that represents an uploaded file.

Хуков нет.

Использование

$FileInterface = new FileInterface();
// use class methods

Методы

  1. public error()
  2. public name()
  3. public size()
  4. public temporaryFilePath()

Код FileInterface{} CF7 6.2.4.1

interface FileInterface
{
    /**
     * Returns the original name of the file on the client machine.
     */
    public function name(): string;

    /**
     * Returns the size, in bytes, of the file.
     */
    public function size(): int;

    /**
     * Returns the full path of the file in which the uploaded file was
     * stored on the server.
     */
    public function temporaryFilePath(): string;

    /**
     * Returns the error code associated with this file upload.
     */
    public function error(): int;
}