dsfb20227 2013-12-25 16:39 采纳率: 0%
浏览 16

在PHP CodeIgniter中获取所选文件的文件路径?

I want to get the file path of a selected file in CodeIgniter. Mainly for validation purposes. I'm using $_FILES['file']['name'].But it only gives the file name. I want to get the full path.

As an example, I want to upload a file which is located in my desktop. So once I selected that file, I should be able to get the file path like this "C:\Desktop\file.doc". I want this because there are several file uploads in the same form and I want to validate those uploads before it goes to the database.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 求会6sv辐射传输模型,辅导(可py6s🙏🏻有偿
    • ¥15 .xla后缀的文件拖到excel里什么内容也没有怎么办
    • ¥20 Workbench中Mechanical打不开、闪退是什么原因?
    • ¥240 MapReduce应用实践 学生课程
    • ¥15 hlss视频显示AUTHORITY_INVALID
    • ¥15 MAX9296A+MAX96717,美信gmsl解串有人做过吗?
    • ¥15 求帮我解决一下inode 爆满的问题(有偿)
    • ¥15 关于#vscode#的问题:布料滤波算法中C++实现pcl在Vscode中pcl库没有#include <pcl>
    • ¥15 fpga:ov5640采集tft显示
    • ¥100 python怎么连接wxSQLite3加密的数据库