dpepbjp126917 2011-10-16 04:47
浏览 496

有没有办法在jQuery中选择文件路径?

I want a file selector which gives me the path.Like a file selector selects the file path and upload the file.Is it possible that something like that gives me the real path of the entity? Like i select a file abc.mp3 and i get its full path d:\xxxx\xxxx\abc.mp3.I dont know is it is possible or not is there something like this in jQuery?

Regards Himanshu Sharma

  • 写回答

1条回答 默认 最新

  • dragon071111 2011-10-16 04:54
    关注

    Generally the answer is no. For security, most browsers have adopted the policy to not allow the path to be available in JavaScript.

    I am fairly certain some older browsers used to keep the entire path in the file field's value, but the policy that all current major browsers use is to only keep the filename without the file path.

    评论

报告相同问题?

悬赏问题

  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测