Discuz X论坛HTML5上传取代原有的Flash上传

upload/static/js/Webuploader.js
+ upload/static/js/webuploader/Uploader.swf
+ upload/static/js/webuploader/webuploader.css
+ upload/static/js/webuploader/webuploader.min.js
upload/template/default/common/upload.htm

 upload\template\default\common\upload.htm 把里面的几行内容替换为:

  1. <!–{if empty($_G[‘uploadjs’])}–>
  2.         <!– <script type=”text/Javascript” src=”{$_G[setting][jspath]}upload.js?{VERHASH}”></script> –>
  3.         <link rel=“stylesheet” type=“text/css” href=“{STATICURL}js/webuploader/webuploader.css?{VERHASH}”>
  4.         <script src=“{STATICURL}js/mobile/jquery.min.js?{VERHASH}”></script>
  5.         <script src=“{STATICURL}js/webuploader/webuploader.min.js?{VERHASH}”></script>
  6.         <script type=“text/javascript” src=“{$_G[setting][jspath]}webuploader.js?{VERHASH}”></script>        
  7.         
  8.         {eval $_G[‘uploadjs’] = 1;
  9. <!–{/if}–>
默认图片
一休哥
智者邦,德正出奇
文章: 815

留下评论