当前位置: 代码迷 >> Java Web开发 >> extjs如何完成下传文件功能——后台是java接收
  详细解决方案

extjs如何完成下传文件功能——后台是java接收

热度:2280   发布时间:2013-02-25 21:05:49.0
extjs怎么完成上传文件功能——后台是java接收
extjs我完全不会啊,但是必须弄出来,就各位大虾帮帮我啊.....
[code=myuploadform= new Ext.FormPanel({
                fileUpload: true,
                width: 500,
                autoHeight: true,
                bodyStyle: 'padding: 10px 10px 10px 10px;',
                labelWidth: 50,
                defaults: {
                    anchor: '95%',
                    allowBlank: false,
                    msgTarget: 'side'
                },
                items:[
                {
                    xtype: 'fileuploadfield',
                    id: 'filedata',
                    emptyText: 'Select a document to upload...',
                    fieldLabel: 'File',
                    buttonText: 'Browse'
                }],
                buttons: [{
                    text: 'Upload',
                    handler: function(){
                        if(myuploadform.getForm().isValid()){
                            form_action=1;
                            myuploadform.getForm().submit({
                                url: 'handleupload.php',
                                waitMsg: 'Uploading file...',
  相关解决方案