Can Backbone send data as multipart/form-data
? I believe it defaults to application/json
. I looked through the documentation and if I do Backbone.emulateJSON = true
it'll send as application/x-www-form-urlencoded
but that doesn't help.
I'm working on a legacy project and I'm trying to add file-upload functionality to it. To do that though I'm told the server needs to be changed to accept multiform data rather than application/json data.