Trouble with Programmatically Updating Media URLS in API to Cloudfront domain URL

Well to do that properly you need to do extension to upload file content type