我正在使用 codeIgniter 文件上传类示例https://www.codeigniter.com/user_guide/libraries/file_uploading.html 来上传文件。在我上传文件后的示例中,它将在上传成功视图页面中显示如下详细信息。
Array
(
[upload_data] => Array
(
[file_name] => VenkataKrishna10.pdf
[file_type] => application/pdf
[file_path] => C:/xampp/htdocs/upload/application/
[full_path] => C:/xampp/htdocs/upload/application/VenkataKrishna10.pdf
[raw_name] => VenkataKrishna10
[orig_name] => VenkataKrishna.pdf
[client_name] => VenkataKrishna.pdf
[file_ext] => .pdf
[file_size] => 83.27
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] =>
)
)
之后我尝试以数组格式查看整个上传的数据。我的问题是如何从上面的数组中获取完整的文件路径。我知道有一个变量full_path
,但我无法得到它。请帮我。