grails 异步文件上传 [英] grails asynchronous file upload

查看:23
本文介绍了grails 异步文件上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有真正的异步/ajax 文件上传到 grails 中,挂接到默认的忙碌"微调器(在其他 ajax 调用中显示的那个微调器)?

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.

一些插件可用于使用 Flash 来完成此任务的 jquery,但我更愿意避免使用 Flash(个人偏好).查看 Valums Ajax-Upload 我已经在我的生产站点中使用了大约一年,并且它运行良好且易于使用.我最喜欢该插件的一点是,它对大多数网站的设计和布局都不显眼.

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...

这篇关于grails 异步文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆