Im using ajax to send an image array:
data: ctx.imageDataArray
My question is, how can I also send the form data through:
$("#content-add-form").serialize(),
This does not seem to work:
data: ctx.imageDataArray + $("#content-add-form").serialize(),
Rather than appending the form data to the string, make it an object:
data: {
imageDataArray: ctx.imageDataArray,
formData: $("#content-add-form").serialize()
}