使用 GWT 将文件上传到 AppEngine:如何向用户提供反馈?

发布于 2024-10-08 23:42:09 字数 343 浏览 4 评论 0原文

我的网站上有一个 GWT-FormPanel,人们可以在其中上传图片并回答一些问题。它运行得很好。唯一的问题是:我想在实际文件处理过程中向用户提供反馈(例如:0%到100%)。但我不知道该怎么做。我认为这是一个非常常见的问题,这就是为什么我想问你们是否知道任何教程或示例可以帮助我解决这个问题。

我已经尝试过 GWTUpload,但它没有达到我想要的效果:我有一个提交按钮位于 FormPanel 的末尾,而 GWTUpload 有它自己的“SEND”按钮,但我不想拥有该按钮。

预先感谢您的帮助,祝圣诞快乐!

I have a GWT-FormPanel on my website, where people can upload pictures and answer some questions. It's working very well. The only problem is: I would like to provide a feedback to the user (for example: 0% to 100%) during the actual file process. But I have no idea how I can do that. I think that's a very common issue, that's why I would like to ask you guys if you know any tutorial or example that could help me to solve this problem.

I've already tried GWTUpload, but it does not do what I want: I have a submit button at the end of the FormPanel and the GWTUpload has it's own "SEND" button, which I don't want to have.

Thanks in advance for helping and merry Christmas!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北方的巷 2024-10-15 23:42:09

从你的问题陈述来看,你的意思是说你想在上传文件时提供从 0 到 100% 的进度条。

查看此库:http://code.google.com/p/gwtupload/。这可能会解决您的问题。而且它在所有浏览器以及 Linux、Mac 上也运行良好。

From your problem statement you mean to say that you want to provide the progress bar while uploading file starting from 0 to 100%.

Take a look to this library: http://code.google.com/p/gwtupload/. This will may solve your problem.And it is also working well in all browsers and also on Linux,Mac.

壹場煙雨 2024-10-15 23:42:09

看起来像 GWTUpload 允许使用自定义提交按钮。没有尝试过,所以也许我错了。

Looks like GWTUpload allows to use custom submit button. Haven't tried it so maybe i'm wrong.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文