You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
705 B
44 lines
705 B
<?php
|
|
|
|
/**
|
|
* 上传驱动接口
|
|
*/
|
|
|
|
namespace libraries\upload;
|
|
|
|
Interface UploadInterface {
|
|
|
|
/**
|
|
* 构建函数
|
|
* @param array $config 上传配置
|
|
*/
|
|
public function __construct($config);
|
|
|
|
/**
|
|
* 检查根路径
|
|
* @param string $path 路径
|
|
* @return boolean
|
|
*/
|
|
public function rootPath($path);
|
|
|
|
/**
|
|
* 检查上传路径
|
|
* @param string $path 路径
|
|
* @return boolean
|
|
*/
|
|
public function checkPath($path);
|
|
|
|
/**
|
|
* 保存文件
|
|
* @param string $file 文件名
|
|
* @return boolean
|
|
*/
|
|
public function saveFile($file);
|
|
|
|
/**
|
|
* 获取错误
|
|
* @return string
|
|
*/
|
|
public function getError();
|
|
|
|
}
|