Discuz!上传的附件保持原始后缀,比如mp4
打开 source\class\discuz\discuz_upload.php
找到加上mp4,比如
找到
- static $safeext = array('attach', 'jpg', 'jpeg', 'gif', 'png', 'swf', 'bmp', 'txt', 'zip', 'rar', 'mp3');
- static $safeext = array('attach', 'jpg', 'jpeg', 'gif', 'png', 'swf', 'bmp', 'txt', 'zip', 'rar', 'mp3', 'mp4');