JangoSteve/remotipart — Issue #6: Getting conflicting status codes
Author: wulftone
Created: 2011-10-19 02:14:03+00:00
State: open

Hi,

I'm having a strange issue here. I have a multipart form and everything works except when I submit a file and have a validation error in another field. When that happens, I get an HTTP 422 status, as I should, because I told it to do that, but I'm also getting the `ajax:success` event triggered and the xhr status code therein is 200. I'm confused!

Non-multipart forms work as expected, and so do multipart forms with no validation errors, and multipart forms with no file attached.

I circumnavigated the problem for the moment by having two forms... not ideal, but not really a huge problem.

Any thoughts?

Thanks!
-Trevor