It’s a bit late, but I’d say you need to base64 encode the data you’re passing in on VersionData
(Edit your file content reference and pass it through base64(…) )
base64(…)