I have some image content in a Base64string
format that I want to post on my MVC controller, but for some reason it is not working:
$.ajax({
url: "FileUploadWithAjax",
type: "POST",
data: 'imageString=' + e.target.result,
processData: false
});
This is the code I am using to send data to the server.
https://i.sstatic.net/3aFbj.png
The data on the right side is what I see printed in the browser's console, while the left side shows the output from my controller's action method.
If you notice, every '+' sign seems to be replaced with white space characters. Is there something missing like contentType in the ajax call?