1
You need to set the contentType
option to false
to prevent jQuery from attempting to coerce the FormData
object into a URL-encoded string when it constructs the request payload. Also, enctype
is not a valid $.ajax
option, so you should remove that.
Source:stackexchange.com