I have stripped the header/overhead information out of the string and am still getting a blank image after a successful upload.
Here’s my function with truncated base64 image:
function sendFiletoRTMedia(){
var uploadData = {
action : "rtmedia_api",
method : "rtmedia_upload_media",
token : Token, // called in previous function
rtmedia_file : '/9j/4AAQSkZJRgABA...' // truncated
title : "test from console",
context : "profile",
image_type : "image/jpg"
}
jQuery.post('http://www.example.com/wp-admin/admin-ajax.php',uploadData,function(u){
console.log(u);
})
}// sendFiletoRTMedia
Console outputs:
{“status”:“TRUE”,“status_code”:140004,“message”:“media updated”,“data”:false}
In BuddyPress the image name shows up in the activity feed (“test from console”), but the image is blank. When I inspect element in Chrome, the URL src is blank.
Thoughts?