fileUpload.php 503 B

12345678910111213
  1. <?php
  2. defined('ONLY_ONLY_ONLY') or exit('Access Denied');
  3. define('LOG_CATALOG',"fileUpload");
  4. try{
  5. //TOKEN验证
  6. $verifyInfo = bizPlater_verifyToken();
  7. $baseUser = $verifyInfo["baseUser"];
  8. $fileUrlPath=input_file_upload('uploadfile','bizPlat');
  9. $ajaxRes->Result=$fileUrlPath;
  10. }catch(Throwable $e){
  11. $friendMsg=get_class($e)=='GeneralException'?$e->friendmsg:$e->getMessage();
  12. throw new GeneralException("","文件上传异常:".$friendMsg,LOG_CATALOG,0,$e);
  13. }