upload.php 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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中MAX_FILE_SIZE限制',
  12. UPLOAD_ERR_FORM_SIZE => '文件大小超出表单中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_TMP_FILE' => '臨時文件錯誤',
  18. 'ERROR_TMP_FILE_NOT_FOUND' => '找不到臨時文件',
  19. 'ERROR_SIZE_EXCEED' => '文件大小超出網站限制',
  20. 'ERROR_TYPE_NOT_ALLOWED' => '文件類型不允許',
  21. 'ERROR_CREATE_DIR' => '目錄創建失敗',
  22. 'ERROR_DIR_NOT_WRITEABLE' => '目錄沒有寫許可權',
  23. 'ERROR_FILE_MOVE' => '文件保存時出錯',
  24. 'ERROR_FILE_NOT_FOUND' => '找不到上傳文件',
  25. 'ERROR_WRITE_CONTENT' => '寫入文件內容錯誤',
  26. 'ERROR_UNKNOWN' => '未知錯誤',
  27. 'ERROR_DEAD_LINK' => '鏈接不可用',
  28. 'ERROR_HTTP_LINK' => '鏈接不是http鏈接',
  29. 'ERROR_HTTP_CONTENTTYPE' => '鏈接contentType不正確',
  30. 'ERROR_UNKNOWN_MODE' => '文件上傳模式錯誤',
  31. ];