fileUpload.php 423 B

1234567891011
  1. <?php
  2. defined('ONLY_ONLY_ONLY') or exit('Access Denied');
  3. try{
  4. $fileUrlPath=input_file_upload('uploadfile','imglist');
  5. $ajaxRes->Result=array(
  6. "imgUrl"=>$fileUrlPath
  7. );
  8. }catch(Throwable $e){
  9. $friendMsg=get_class($e)=='GeneralException'?$e->friendmsg:"非常抱歉,处理业务时发生错误";
  10. throw new GeneralException("处理业务发生错误",$friendMsg,"KLY_ZTest",0,$e);
  11. }