I've got a problem with this code. I want to send to the server a file and other variables which are only text.
Imageform is a DataFomr object.
This is my code at the moment:
name = "Peter";
$.ajax({
url: "?c=produ&a=send_form",
type: "POST",
data: imageform"&name="name,
processData : false,
contentType: false,
});
But I recived on the server nothing.
How I can to send a file plus text. Thanks :)