1 回答

TA貢獻(xiàn)1757條經(jīng)驗(yàn) 獲得超7個(gè)贊
我認(rèn)為您需要更改以下行
if (move_uploaded_file($this->tmp_file_name, $target)) {
自
if (move_uploaded_file( $this->get_tmp_name(), $target )) {
在方法中。結(jié)婚upload_file
public function upload_file(){
$this->create_dir();
$target = $this->backlink_step . $this->target_location . "/" . $this->get_file_name();
if (move_uploaded_file( $this->get_tmp_name(), $target )) {
return $target;
} else {
die("tmp_name: {$this->get_tmp_name()} \n target: {$target} \n Error: {$this->File['error']}");
}
}
- 1 回答
- 0 關(guān)注
- 152 瀏覽
添加回答
舉報(bào)