That's true.  Form uploads don't actually use the XHR.  A mock one is
created by the form plugin so that all appropriate events can be
simulated, but the "Content-Type" header won't be available.  The
"dataType" settings option drives how the response is handled, so you
might as well use that too, but ultimately you'll need to know what
data type to expect.

Mike

> But it seems not to work when a file is uploaded. Any ideas how to get
> header in that case?
>
> On Jul 25, 12:47 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > You can defined a "complete" handler.  This handler is passed the XHR
> > and status.  For example:
> >
> > > is there a way how to access XMLHttpRequest (it's headers) returned
> > > after submiting ajaxForm?
> >

Reply via email to