She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

Sending mail via POST works - but how to do it with an attached image?

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;

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

Sending mail via POST works - but how to do it with an attached image?

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 ?

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

Sending mail via POST works - but how to do it with an attached image?

Yes Igor, there's an image.

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

Sending mail via POST works - but how to do it with an attached image?

any update? what do you think is the problem here

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

Sending mail via POST works - but how to do it with an attached image?

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 ?

Return to “Issues”