|
PHP复制代码
$config ['upload_path'] = './upload_data/';
$config ['allowed_types'] = 'xls';
$config ['file_name'] = $userid . "_" . time ();
$this->upload->do_upload ();
$file = $this->upload->data ();
var_dump ( $file );
复制代码
显示结果是
'file_name' => string '13_1280302580.xls' (length=17)
'file_type' => string 'application/vnd.ms-excel' (length=24)
'file_path' => string 'E:/WORK/WWW/WLSMS/Source/upload_data/' (length=37)
'full_path' => string 'E:/WORK/WWW/WLSMS/Source/upload_data/13_1280302580.xls' (length=54)
'raw_name' => string '13_1280302580' (length=13)
'orig_name' => string '13_1280302580.xls' (length=17)
不解,求教为何 'file_name' 和 'orig_name' 一样? |
|