You are here

protected property Upload::$stateMap in UEditor - 百度编辑器 8

File

src/Uploader/Upload.php, line 23

Class

Upload
UEditor编辑器通用上传类

Namespace

Drupal\ueditor\Uploader

Code

protected $stateMap = array(
  //上传状态映射表,国际化用户需考虑此处数据的国际化
  "SUCCESS",
  //上传成功标记,在UEditor中内不可改变,否则flash判断会出错
  "文件大小超出 upload_max_filesize 限制",
  "文件大小超出 MAX_FILE_SIZE 限制",
  "文件未被完整上传",
  "没有文件被上传",
  "上传文件为空",
  "ERROR_TMP_FILE" => "临时文件错误",
  "ERROR_TMP_FILE_NOT_FOUND" => "找不到临时文件",
  "ERROR_SIZE_EXCEED" => "文件大小超出网站限制",
  "ERROR_TYPE_NOT_ALLOWED" => "文件类型不允许",
  "ERROR_CREATE_DIR" => "目录创建失败",
  "ERROR_DIR_NOT_WRITEABLE" => "目录没有写权限",
  "ERROR_FILE_MOVE" => "文件保存时出错",
  "ERROR_FILE_NOT_FOUND" => "找不到上传文件",
  "ERROR_WRITE_CONTENT" => "写入文件内容错误",
  "ERROR_UNKNOWN" => "未知错误",
  "ERROR_WATERMARK_ADD" => "添加水印出错",
  "ERROR_WATERMARK_TEXT_RGB" => "水印文字颜色格式不正确",
  "ERROR_WATERMARK_NOT_FOUND" => "需要添加水印的图片不存在",
  "ERROR_WATERMARK_SIZE" => "水印太大或图片太小",
  "ERROR_DEAD_LINK" => "链接不可用",
  "ERROR_HTTP_LINK" => "链接不是http链接",
  "ERROR_HTTP_CONTENTTYPE" => "链接contentType不正确",
);