【发布时间】:2021-12-16 21:29:35
【问题描述】:
现在我正在尝试添加一个功能,用户可以通过 URL 下载他们上传的文件, 我试过这个代码示例:
html.AnchorElement anchorElement = new html.AnchorElement(href: "https://www.example.com/file/path/");
anchorElement.download = "https://www.example.com/file/path/";
anchorElement.click();
但它只是在浏览器上打开文件,这不是我想要的,有人有其他建议吗?
【问题讨论】:
标签: flutter download flutter-web