1
POST 대신 PUT 메서드로 파일 업로드 양식을 사용할 수 있습니까?ExtJS 파일 업로드 양식 방법
this.personEditForm = new Ext.FormPanel({
xtype:"form",
fileUpload:true,
frame:true,
autoScroll:true,
layout:{
type:"vbox",
flex:"even"
},
items:[
{
xtype:'fileuploadfield',
emptyText:'Выберите файл...',
name:'avatar',
width:300,
fieldLabel:'Фото пользователя',
buttonText:'Обзор'
}
buttons:[
{
text:'Сохранить',
handler:function() {
if (self.personEditForm.getForm().isValid()) {
method = "PUT";
url = PERSONS_URL + personID;
self.personEditForm.getForm().submit({
method:method,
url:url,
success:function (form, action) {}
});
}
}
}
]
});
내가 파일 필드를 삭제하고있어, 방법 workd을 PUT : 여기 내 양식 코드입니다. 뭐가 문제 야?