[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorFileUploadException extends Exception { 4 5 public function __construct($code) { 6 $map = array( 7 UPLOAD_ERR_INI_SIZE => 8 "Uploaded file is too large: file is larger than the ". 9 "'upload_max_filesize' setting in php.ini.", 10 UPLOAD_ERR_FORM_SIZE => 11 'File is too large.', 12 UPLOAD_ERR_PARTIAL => 13 'File was only partially transferred, upload did not complete.', 14 UPLOAD_ERR_NO_FILE => 15 'No file was uploaded.', 16 UPLOAD_ERR_NO_TMP_DIR => 17 'Unable to write file: temporary directory does not exist.', 18 UPLOAD_ERR_CANT_WRITE => 19 'Unable to write file: failed to write to temporary directory.', 20 UPLOAD_ERR_EXTENSION => 21 'Unable to upload: a PHP extension stopped the upload.', 22 23 -1000 => 24 "Uploaded file exceeds limit in Phabricator ". 25 "'storage.upload-size-limit' configuration.", 26 ); 27 28 $message = idx($map, $code, 'Upload failed: unknown error.'); 29 parent::__construct($message, $code); 30 } 31 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |