fileUpload.php 396 B

12345678910
  1. <?php
  2. defined('ONLY_ONLY_ONLY') or exit('Access Denied');
  3. define('LOG_CATALOG',"fileUpload");
  4. try{
  5. $fileUrlPath=input_file_upload('uploadfile','common');
  6. $ajaxRes->Result=$fileUrlPath;
  7. }catch(Throwable $e){
  8. $friendMsg=get_class($e)=='GeneralException'?$e->friendmsg:$e->getMessage();
  9. throw new GeneralException("","文件上传异常:".$friendMsg,LOG_CATALOG,0,$e);
  10. }