ExtJS 3.4를 사용하고 있으며 응용 프로그램에서 fileupload를 사용하고 싶습니다. 내 코드 및 파일 업로드 필드 스크린 샷은 아래와 같습니다. 파일 업로드 필드를 표시하는 데 문제가 있습니다.이 오류를 해결할 수 없습니다. 누구든지 도울 수 있니?ExtJS 파일 업로드 필드가 올바르게 표시되지 않습니다.
var uploadFormPanel = new Ext.FormPanel({
fileUpload : true,
autoHeight : true,
height : 200,
bodyStyle : 'padding: 10px 10px 0 10px;',
labelWidth : 50,
defaults : {
anchor : '95%',
allowBlank : false,
msgTarget : 'side'
},
items: [
{
xtype : 'combo',
fields : ['id','name'],
name : 'fuelCompany',
store : comboStore,
valueField : 'id',
displayField : 'name',
submitValue : true,
typeAhead : true,
triggerAction : 'all',
selectOnFocus : true,
allowBlank : false,
mode : 'remote',
anchor : '95%'
},{
xtype : 'fileuploadfield',
id : 'form-file',
name : 'file',
buttonText : 'select file',
buttonCfg : {
iconCls : 'upload-icon'
}
}
]
});
'fileuploadfield'는 ExtJS 3의 내장 구성 요소로 보이지 않습니다. 적어도 필자는 문서에서 찾을 수 없습니다. 당신이 작성한 확장 기능입니까? –
내가 사용한 ExtJS 버전을 편집했습니다. 나는 이것을 사용했다 : http://dev.sencha.com/deploy/ext-3.4.0/examples/form/file-upload.html – vtokmak