Fixes Base64 Upload

function was not called properly, please merge the code to fix Base64 Upload issue