Secure media uploads expire

This has now been fixed here https://github.com/discourse/discourse/commit/7ff58f17877cd5b5ce6e96def47aa7719e843977 @RGJ. The problem was happening because browsers send an initial request to audio + video files to get metadata for the file e.g. duration. However because of the secure presigned URL, this initial request started the 15 second expiry countdown, so when users went to play audio + video after that time period we got the 403 error from AWS.

We now disable preloading on video + audio when secure media is enabled. Existing posts with audio + video will need to have their HTML rebuilt to see the change.

13 Likes