codeigniter文件上传后得到的绝对路径
用ci上传类上传以后得到的文件的信息是:Array([upload_data]=>Array([file_name]=>1371989906.jpg[file_type]...
用ci上传类 上传以后得到的文件的信息是:
Array ( [upload_data] => Array ( [file_name] => 1371989906.jpg [file_type]
=> image/jpeg [file_path] => E:/php/wwwroot/ci/assets/images/useruploads/
[full_path] => E:/php/wwwroot/ci/assets/images/useruploads/1371989906.jpg
[raw_name] => 1371989906 [orig_name] => 1371989906.jpg [client_name] =>
Tulips.jpg [file_ext] => .jpg [file_size] => 606.34 [is_image] => 1
[image_width] => 1024 [image_height] => 768 [image_type] => jpeg
[image_size_str] => width="1024" height="768" ) )
得到的文件是绝对路径,难道要把E:/php/wwwroot/ci/assets/images/useruploads/1371989906.jpg这样的信息写入数据库?? 那不就调用不到了吗 展开
Array ( [upload_data] => Array ( [file_name] => 1371989906.jpg [file_type]
=> image/jpeg [file_path] => E:/php/wwwroot/ci/assets/images/useruploads/
[full_path] => E:/php/wwwroot/ci/assets/images/useruploads/1371989906.jpg
[raw_name] => 1371989906 [orig_name] => 1371989906.jpg [client_name] =>
Tulips.jpg [file_ext] => .jpg [file_size] => 606.34 [is_image] => 1
[image_width] => 1024 [image_height] => 768 [image_type] => jpeg
[image_size_str] => width="1024" height="768" ) )
得到的文件是绝对路径,难道要把E:/php/wwwroot/ci/assets/images/useruploads/1371989906.jpg这样的信息写入数据库?? 那不就调用不到了吗 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询