upload.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  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 => 'file size exceeds MAX_FILE_SIZE in php.ini limit',
  12. UPLOAD_ERR_FORM_SIZE => 'file size exceeds MAX_FILE_SIZE in form limit',
  13. UPLOAD_ERR_PARTIAL => 'upload file is not complete',
  14. UPLOAD_ERR_NO_FILE => 'no files uploaded',
  15. UPLOAD_ERR_NO_TMP_DIR => 'no temporary directory found',
  16. UPLOAD_ERR_CANT_WRITE => 'fail to write file',
  17. 'ERROR_TMP_FILE' => 'create temporary file error',
  18. 'ERROR_TMP_FILE_NOT_FOUND' => 'can\'t find a temporary file',
  19. 'ERROR_SIZE_EXCEED' => 'file size beyond the site restrictions',
  20. 'ERROR_TYPE_NOT_ALLOWED' => 'file type does not allowed',
  21. 'ERROR_CREATE_DIR' => 'directory creation fails',
  22. 'ERROR_DIR_NOT_WRITEABLE' => 'directory does not have write permission',
  23. 'ERROR_FILE_MOVE' => 'file save error',
  24. 'ERROR_FILE_NOT_FOUND' => 'can\'t find the uploaded file',
  25. 'ERROR_WRITE_CONTENT' => 'error writing file content',
  26. 'ERROR_UNKNOWN' => 'An unknown error',
  27. 'ERROR_DEAD_LINK' => 'link is not available',
  28. 'ERROR_HTTP_LINK' => 'not a HTTP link',
  29. 'ERROR_HTTP_CONTENTTYPE' => 'link contentType incorrect',
  30. 'ERROR_UNKNOWN_MODE' => 'Please Config the core.mode',
  31. ];