PDA

View Full Version : Issue with fileupload with filefield



Vikram
18 Jan 2016, 8:07 AM
Hello,

I am facing strange issue while submitting filefield during form submittion.
I put filefield control on a form, but when i submit this form i got 401 Un-authorised error in console.
form.submit({


url: 'myurl',

headers: { 'Content-Type': 'text/html' },

success: function (fp, o) {
var data = Ext.decode(o.response.responseText);

},
failure: function (fp, o) {
var data = Ext.decode(o.response.responseText);

}
});

Please suggest how to fix this.

Gary Schlosberg
18 Jan 2016, 9:34 AM
Sounds like an issue with your web server. Are you able to access the error/access logs? Beyond that, it is saying that the action you are performing is not authorized, so perhaps there is an issue with your request?