mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-11 00:48:41 +00:00
53 lines
920 B
PHP
53 lines
920 B
PHP
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package Modules\Media\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Media\Models;
|
|
|
|
use phpOMS\Stdlib\Base\Enum;
|
|
|
|
/**
|
|
* Upload status.
|
|
*
|
|
* @package Modules\Media\Models
|
|
* @license OMS License 2.0
|
|
* @link https://jingga.app
|
|
* @since 1.0.0
|
|
*/
|
|
abstract class UploadStatus extends Enum
|
|
{
|
|
public const OK = 0;
|
|
|
|
public const WRONG_PARAMETERS = -1;
|
|
|
|
public const NOTHING_UPLOADED = -2;
|
|
|
|
public const UPLOAD_SIZE = -3;
|
|
|
|
public const UNKNOWN_ERROR = -4;
|
|
|
|
public const CONFIG_SIZE = -5;
|
|
|
|
public const WRONG_EXTENSION = -6;
|
|
|
|
public const NOT_UPLOADED = -7;
|
|
|
|
public const NOT_MOVABLE = -8;
|
|
|
|
public const FAILED_HASHING = -9;
|
|
|
|
public const NOT_ENCRYPTABLE = -10;
|
|
|
|
public const FILE_NOT_FOUND = -11;
|
|
}
|