简体   繁体   English

chrome和Opera以外的浏览器的文件夹上传

[英]Folder upload for browers other than chrome and opera

I want to support folder upload option. 我要支持文件夹上传选项。

input type="file" name="files[]" multiple directory webkitdirectory mozdirectory 输入type =“ file” name =“ files []”多目录webkitdirectory mozdirectory

This works in chrome and opera and not elsewhere. 这适用于Chrome和Opera,而不适用于其他地方。 I know its not supported by FF. 我知道FF不支持它。 But is there a way to do so. 但是有没有办法做到这一点。 I came across the zipping option here( Select directory for HTML5 multiple file input in Firefox? ) as well but I dont want it that way. 我在这里也遇到了压缩选项( 在Firefox中为HTML5输入多个文件选择目录吗? ),但是我不希望这样。 Can someone suggest a way to start off with this, so that I can support/simulate folder upload in FF/IE. 有人可以建议一种从此开始的方法,以便我可以在FF / IE中支持/模拟文件夹上传。

Folder upload is now supported by Firefox (as of version 50, released on 15 November 2016). Firefox现在支持文件夹上载(2016年11月15日发布的版本50)。 The developer notes are here: 开发人员说明在这里:

https://developer.mozilla.org/en-US/Firefox/Releases/50 https://developer.mozilla.org/en-US/Firefox/Releases/50

Folder upload it already supported by Microsoft Edge browser (the replacement for Internet Explorer). 文件夹上载它已经受Microsoft Edge浏览器支持(Internet Explorer的替代品)。 It is documented, with PI calls, here: 通过PI调用记录在这里:

https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/dev-guide/html5/folder-upload/ https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/dev-guide/html5/folder-upload/

As Chrome and Opera have already supported folder upload for a long time, the last remaining major browser that does not support folder upload is Safari. 由于Chrome和Opera长期以来一直支持文件夹上载,因此最后一个不支持文件夹上载的主要浏览器是Safari。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM