Pursuing a dream does not change the name of the file upload

First, modify include -> dialog -> select_soft_post.php file

51 lines before 

if(!empty($newname))

Plus

$newname = $uploadfile_name;

Second, modify the background folder -> media_add.php

Commented

            $filename = "{$adminid}_".MyDate("His",$uptime).mt_rand(100,999).$i;
            $fs = explode(".",${"upfile".$i."_name"});
            $filename = $filename.".".$fs[count($fs)-1];
            $filename = $savePath."/".$filename;

This four lines

 

Additional: Chinese name of the file still can not successfully uploaded to the server. While backstage prompt successful, but the server still does not have this file.

Guess you like

Origin www.cnblogs.com/html5redbird/p/11506381.html