Error handling using jquery forms plugin
Hi all,
I'm having issues doing some proper error handling when using the form plugin
and uploading a file.
It looks like when I have an upload in the form the response code 500 is ignored.
The code is as simple as this :
- $("#uplForm").ajaxForm({
- success: function(respText) {
- alert("Success");
- },
- error: function() {
- alert("ERROR")
- },
- timeout: 10000
- });
Now, my server side language is python/django and I force the response code to be 500. Though I always get the success alert. The only way to get the error alert is to actually remove the file input from the form.
This indicates that there is some sort of bug on the plugin when it uploads files.
Browsers tested :
- FF3.5.8 (Ubuntu) - FF3.6 (Win)
- Chrome 5.0.342.1 dev (Ubuntu) - Chrome 4.0.246.89 (Win)
- Opera 10.50 (Win)
- Safari 4.0.4 (Win)
- IE6 (Win)
The plugin version is 2.4.0 running with jquery 1.4.2.
Thanks for any help.