Ext lib 对话框和文件上传控件 [英] Ext lib dialog and file upload controls
问题描述
我有一个包含文件上传控件的对话框.当在对话框中提交表单时,除了选择的文件之外,所有内容都被正确保存.我怀疑对话是造成这种情况的原因.
I have a dialog containing a file upload control. When the form is submitted within the dialog everything is being saved correctly except the file that was selected. I suspect the dialog to be the cause of this.
是否有我必须设置的属性才能启用它,或者是否有某种解决方法?
Is there a property I have to set to enable it or is there some sort of work around?
推荐答案
我认为 这个 文章将回答您的问题.
I think this article will answer your question.
简而言之:对话框使用 HTTP GET 请求将数据发送回服务器,因此不能包含附件.本文介绍了一种您可能可以使用的解决方法.
In short: the dialog uses a HTTP GET request to send data back to the server and thus can't include attachments. The article describes a workaround which you might be able to use.
这篇关于Ext lib 对话框和文件上传控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!