Closed eliknebel closed 1 year ago
This PR should now be ready for review. Specify optional webContentBundle name on command line with -w
flag causing all webcontent files to be uploaded to this "webContentBundle", preserving the directory tree structure.
Migration Test Course webcontent has already been uploaded into a webContentBundle using command line flag -w 4sdfykby
. All such trees are placed under "bundles" within the S3 bucket "media" space, making URL root of that bundle https://d2xvti2irp4c7t.cloudfront.net/media/bundles/4sdfykby
. File URLS have root-content-relative paths following that, e.g
https://d2xvti2irp4c7t.cloudfront.net/media/bundles/4sdfykby/webcontent/alppha.png
or, using bundle name 'chem1',
https://d2xvti2irp4c7t.cloudfront.net/media/bundles/chem1/u1_foundations_chem/labs_foundations/webcontent/balance_feedback.PNG
When -w flag is set, "bucket" URLs should be used on iframes, links to webcontent files, and superactivity source and assets pointing to webcontent. Other media files should remain referenced via URLS pointing to the flat content-addressable media library.
One should be able to see this working in the migration test course on the framed interactive histogram example from statistics on the "Links" test page and also in the superactivities.
Adds the ability to specify creation of a media bundle as part of media upload. Also now shows filesizes on upload actions