Downloading multiple files with data-downloadurl

牧云@^-^@ 提交于 2019-12-08 08:57:27

问题


I was looking over this case study on HTML5 drag-and-drop file download using data-downloadurl. I have a working model of this method that can download a file retrieved from the server on drop, but I am wondering if there is a way to set the data-downloadurl to download multiple files at once.

What I was thinking is something like a comma-separated list of urls like:

data-downloadurl="{$item.mime}:{$item.name}:{$item.url}, {$item2.mime}:{item2.name"}:{item2.url}

but I know this doesn't work..is there any way to do this?

来源:https://stackoverflow.com/questions/10605043/downloading-multiple-files-with-data-downloadurl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!