PRX / cms.prx.org

CMS API for PRX
https://cms.prx.org
GNU Affero General Public License v3.0
4 stars 2 forks source link

Leave mp3 extensions alone #490

Closed cavis closed 5 years ago

cavis commented 5 years ago

Issue where user uploaded a something.MP3 file via Publish/CMS. And then the PublicAsset stuff in CMS returns the wrong case in the enclosure_url, and the signed redirect-to-S3 is a 404/403.

The cms-audio-lambda copies the file over as-is to:

s3://production.mediajoint.prx.org/public/audio_files/<id>/something.MP3
s3://production.mediajoint.prx.org/public/audio_files/<id>/something_broadcast.MP3

This mirrors what Exchange does, where the original file would be an mp2 or something, but _broadcast is a transcoded mp3. But unlink Exchange, the cms-audio-lambda leaves the extension alone.

CMS should just return the original extension lower-or-uppercase.