dongzhenge2014 2009-11-26 21:14
浏览 88

没有Flash / .NET,为什么多文件上传不简单?

The only tools/plugins I've seen online that allow for multiple files to be selected for upload through one single dialog box using a SHIFT or CTRL click action (as opposed to clicking on a single file per for file uploads) exist for controls made in Flash/.NET/Java, not just straight Javascript/HTML/PHP.

Why is that the case? I'd imagine that if possible, site developers would look to having less dependencies on different technologies rather than more.

  • 写回答

2条回答 默认 最新

  • douzi8916 2009-11-26 21:36
    关注

    That's because a HTML <input type="file"> element can only contain one file as per per spec - it's simply impossible to upload multiple files through it. And Javascript cannot fake a multi-file upload box because the file selection dialog is implemented by the browser and, as per spec, allows only one file to be selected. Javascript does not have access to the local file system and thus cannot replace that dialog.

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!