Customizing an Action of previously shared Action: changes not taking

This seems to be related to the URL structure of the file I am uploading to s3. I removed the ContentType param from the code and it worked.