Page 2 of 2
Sending mail via POST works - but how to do it with an attached image?
Posted: Fri Mar 27, 2015 12:12 am
by She
so how can i post data on it?
i used this code to post it,
var dataString =localStorage.getItem('CapturedImage');
$.ajax({
type: "POST",
url: "http://122.52.217.71:8082/sampleforup...",
data: dataString,
success: function() {
alert("sent");
}
});
return false;
Sending mail via POST works - but how to do it with an attached image?
Posted: Fri Mar 27, 2015 2:31 pm
by Egor Kotov6832188
She,
Looks like right.
Next step is to somehow test content of your datastring variable, to be sure it has image.
Have you tried to output it to console or other places/components ?
Sending mail via POST works - but how to do it with an attached image?
Posted: Mon Mar 30, 2015 1:19 am
by She
Yes Igor, there's an image.
Sending mail via POST works - but how to do it with an attached image?
Posted: Tue Mar 31, 2015 7:07 am
by She
any update? what do you think is the problem here
Sending mail via POST works - but how to do it with an attached image?
Posted: Wed Apr 01, 2015 6:22 am
by Egor Kotov6832188
She,
How did you checked if image there ?
Did you checked it before sending ?
Have you checked your request in network tab of console, to see if data was send ?