grails异步文件上传 [英] grails asynchronous file upload
问题描述
如果在grails中有真正的异步/ ajax文件上传,并挂载到默认的繁忙微调器(在其他ajax调用中显示的那个)我想在文件上传过程中显示spinner是否需要调用是明确的?
这是那些事情之一你通常需要一些来自第三方的帮助,因为交易背后有一些复杂性和限制。
有些插件可用于jquery,它使用Flash来完成此操作,但我更愿意避免使用Flash(个人偏好)的任何内容。查看 Valums Ajax-Upload 我已经在我的制作网站使用了大约一年,并且它运作良好,易于使用。我最喜欢的插件是它对大多数站点的设计和布局都不显眼。
另外,这是一个常见问题。看看这些答案,以及...
Is there true asynchronous/ajax file uploading in grails that hooks into the default "busy" spinner (the one that shows on other ajax calls)?
Or if I wanted to show that spinner during a file upload would I need to call is explicitly?
This is one of those things that you usually want some help from a third party because of some of the complexities and restrictions behind the exchange.
Some plugins are available for jquery that use Flash to accomplish this but I prefer to avoid anything that uses Flash (personal preference). Check out Valums Ajax-Upload I've used it now for about a year in my production site and it works well and was easy to use. My favorite thing about the plug-in is that it's unobtrusive to the design and layout of most any site.
Also, this is a commonly asked question. Check out these answers as well...
- Stackoverflow - Is it possible to use Ajax to do file upload?
- Stackoverflow - remote file upload
- Stackoverflow - Ajax file upload
这篇关于grails异步文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!