upload.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the overtrue/laravel-ueditor.
  4. *
  5. * (c) overtrue <i@overtrue.me>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. return [
  11. UPLOAD_ERR_INI_SIZE => '上传的文件超过了 php.ini 中 upload_max_filesize 选项限制的值',
  12. UPLOAD_ERR_FORM_SIZE => '上传文件的大小超过了 HTML 表单中 MAX_FILE_SIZE 选项指定的值',
  13. UPLOAD_ERR_PARTIAL => '文件只有部分被上传',
  14. UPLOAD_ERR_NO_FILE => '没有文件被上传',
  15. UPLOAD_ERR_NO_TMP_DIR => '找不到临时文件夹',
  16. UPLOAD_ERR_CANT_WRITE => '文件写入失败',
  17. 'ERROR_SIZE_EXCEED' => '文件大小超出网站限制',
  18. 'ERROR_TYPE_NOT_ALLOWED' => '文件类型不允许',
  19. 'ERROR_CREATE_DIR' => '目录创建失败',
  20. 'ERROR_DIR_NOT_WRITEABLE' => '目录没有写权限',
  21. 'ERROR_FILE_MOVE' => '文件保存时出错',
  22. 'ERROR_WRITE_CONTENT' => '写入文件内容错误',
  23. 'ERROR_UNKNOWN' => '未知错误',
  24. 'ERROR_DEAD_LINK' => '链接不可用',
  25. 'ERROR_HTTP_LINK' => '链接不是http链接',
  26. 'ERROR_HTTP_CONTENTTYPE' => '链接contentType不正确',
  27. 'ERROR_UNKNOWN_MODE' => '文件上传模式错误',
  28. ];