Using mediaResource.save() from angular

I am currently working to create a content app for an umbraco 10 project that requires the uploading of files to the umbraco media library from the front end angular code using the mediaResource.save(). I am able to create the media item but am receiving an error when trying to upload the file array.

mediaResource.getScaffold(-1, 'file')
    .then(function (scaffold) {
        var myDoc = scaffold;
        myDoc.name = "WordToWebUpload";

        mediaResource.save(myDoc, true, args.files)
            .then(function (media) {
                alert("Retrieved, updated and saved again");
            });
    })