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 用vivado写数字逻辑实验报告撰写,FPGA实验
    • ¥15 为什么shp文件会有这种小方块?
    • ¥15 ecplise在连接数据库时显示加载驱动成功但是数据库连接失败
    • ¥15 visionmaster启动失败,提示为“机器不满足授权而被禁用”
    • ¥15 IDEA中圈复杂度如何具体设置
    • ¥50 labview采集不了数据
    • ¥15 Multisim红外倒车雷达仿真中距离问题
    • ¥15 请上面代码做什么处理或什么混淆
    • ¥15 英雄联盟自定义房间置顶
    • ¥15 W5500网线插上无反应