Closed hugosolar closed 5 months ago
@hugosolar looks like failing e2e tests, could you check on those please?
@jeffpaul I think this is related to the constants passed to Cypress related to the account name & key
On a previous PR, I remember we faced the same situation and @Sidsector9 was able to fix it let me know otherwise
@hugosolar Some feedback to address and need to address the E2E tests.
Description of the Change
We've seen some situations where users want to replace a PDF file with an updated version (CV for example) This PR adds to the plugin the ability to replace pdf files (for now) using a new method to copy the blob and replace it with the uploaded file. There's a new method called
copy_media_to_blob_storage
in helpers and also a newcopy_blob
method in the API client this uses the Copy Blob operation described here: https://learn.microsoft.com/en-us/rest/api/storageservices/Copy-BlobThere's also a new button added in the media uploader that holds the workflow to replace the document
Open discussion for addressing images
We should have a discussion on how to approach image replacements since an image of a different orientation can be uploaded and image sizes of the image to be replaced won't match, so I was thinking on two paths
How to test the Change
To test this:
wp-admin/upload.php
)Changelog Entry
Credits
@hugosolar
Checklist: