download - Vaadin 链接下载

标签 download vaadin

您好,我是 Vaadin 框架的新手。 在这里,我在我的项目中使用 vaadin 链接 我需要在我的应用程序中放置一个用于下载文件的链接 我无法执行此操作 任何人都可以发送 hwich 的代码 如果我单击 vaadin 链接,那么我就可以下载该文件当前步骤是用户在上一步中上传的。

最佳答案

详细教程可以在这个official vaadin wiki article中找到.

Providing a file for download to the user might be trickier that what it seems - the file should be downloaded instead of just opened by the browser, download blockers should be avoided, a unique URL should be generated and server-side memory should be released when the file is no longer available for download. All this is taken care of by new

FileDownloader extension that can make almost any component start a download when clicked.

关于download - Vaadin 链接下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29386630/

相关文章:

css - 使用 Vaadin 在按钮图像/图标中间设置标题

java - Vaadin Leaflet map 图层图标删除

vaadin - Vaadin 21 和 ApplicationLayout 上的滚动问题

用于下载项目的 C# 代码,检查文本/二进制和 gzip/非压缩?

ios - Swift - NSURLSession 在后台下载?

networking - 在 D 中下载文件

带有 Vaadin 插件的 Grails,它是正确的选择吗?

java - 从 String 转换为 int 再转换为 Vaadin 时出错

javascript - 为什么我在下载文件时收到错误 "Error [ERR_STREAM_WRITE_AFTER_END]: write after end"?

javascript - 如何使用casperjs下载与我在浏览器中看到的页面相同的页面