oms-Media/Models/UploadStatus.php
Dennis Eichhorn 80a4100ba5
Some checks are pending
Image optimization / general_image_workflow (push) Waiting to run
CI / general_module_workflow_php (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run
bug fixes
2025-04-02 13:33:50 +00:00

53 lines
920 B
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Media\Models
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @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.2
* @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;
}