class Uploader extends FileManager

deprecated 4.0-dev

图片上传类

Constants

TYPE_IMAGES

TYPE_FILE

TYPE_VIDEO

TYPE_AUDIO

Methods

static array
kvExt(string $type)

获取可用扩展

static string
kvDesc(string $type)

获取描述

static string
prefix()

上传的前缀地址

static array
previewRules()

规则预览

static 
previewImage($url, $size = 40)

No description

static array
resizedSize(int $width, int $height, int $min_district, int|null $max_district)

重新定义大小

Details

in FileManager at line 26
static array kvExt(string $type)

获取可用扩展

Parameters

string $type

Return Value

array

in FileManager at line 50
static string kvDesc(string $type)

获取描述

Parameters

string $type

Return Value

string

in FileManager at line 66
static string prefix()

上传的前缀地址

Return Value

string

in FileManager at line 77
static array previewRules()

Since: 4.2

规则预览

Return Value

array

in FileManager at line 95
static previewImage($url, $size = 40)

No description

Parameters

$url
$size

in FileManager at line 143
static array resizedSize(int $width, int $height, int $min_district, int|null $max_district)

重新定义大小

Parameters

int $width 原始宽度
int $height 原始高度
int $min_district 最小限制值
int|null $max_district 最大限制值

Return Value

array