使用 GWT 将文件上传到 AppEngine:如何向用户提供反馈?
我的网站上有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从你的问题陈述来看,你的意思是说你想在上传文件时提供从 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.
看起来像 GWTUpload 允许使用自定义提交按钮。没有尝试过,所以也许我错了。
Looks like GWTUpload allows to use custom submit button. Haven't tried it so maybe i'm wrong.