mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
82 lines
1.5 KiB
PHP
82 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package phpOMS\Message
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Message;
|
|
|
|
/**
|
|
* Upload interface.
|
|
*
|
|
* @package phpOMS\Message
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
interface UploadedFileInterface
|
|
{
|
|
|
|
/**
|
|
* Retrieve a stream representing the uploaded file.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getStream();
|
|
|
|
/**
|
|
* Move the uploaded file to a new location.
|
|
*
|
|
* @param string $targetPath Path to new location
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function moveTo(string $targetPath);
|
|
|
|
/**
|
|
* Retrieve the file size.
|
|
*
|
|
* @return int
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getSize() : int;
|
|
|
|
/**
|
|
* Retrieve the error associated with the uploaded file.
|
|
*
|
|
* @return int
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getError() : int;
|
|
|
|
/**
|
|
* Retrieve the filename sent by the client.
|
|
*
|
|
* @return string
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getClientFilename() : string;
|
|
|
|
/**
|
|
* Retrieve the media type sent by the client.
|
|
*
|
|
* @return string
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getClientMediaType() : string;
|
|
}
|