I'm using .ajaxForm to submit both form data and image files. I have multiple asynchronous calls being made using the same ajaxForm code (most of which do not handle images).
All is fine until ajax encounters an error, at which point I am unable to access any posted data via the error function in order to identify the ajax call that threw the error (in order to correctly handle it with my code).
I was using the this.data solution suggested by Hammersholt in this thread which works fine when a fileInput is not used, but fails to retrieve data when a file is selected.
A solution that works using ajaxForm for both data and files would be preferred.
Many thanks for any help with this,
Antony