View Full Version : XML tag name mismatch (expected img) Problem

26 May 2010, 2:55 AM
Hi everybody,

I've a big issue to resolve and I don't understad where's the problem. I've a form to upload a file (image), and it works, but when uploding is finished I receive an error:

XML tag name mismatch (expected img) Problem

and my interface crashes.

Here it is the extjs 3.0 request:


url: '/upimage/format/html',
waitMsg:'Uploading image...',

success: function(a, b) {

"url" is a Zend Framework page, that set the content type to html. I think that this is the problem, but if I receive a json response, I receive also a json file to download.

Can I send an image file in a ajax request? Could anybody help me?

26 May 2010, 5:09 AM
Did you read the File Uploads section in the BasicForm docs (http://www.extjs.com/deploy/dev/docs/?class=Ext.form.BasicForm)?

26 May 2010, 5:31 AM
ok, I've resolved by myself, printing a string like this {success: true}

Thanks Condor!