This behavior has been resolved and deployed to the production environment as of 7/1/26.
Summary:
When a file is uploaded to a course, embedded in a page, then updated locally and replaced, the embed still points to the original file’s ID, When choosing to {{preview inline}}, the preview behaves as expected, however when using {{preview in overlay}}, the request returns a 404.
Expected Behavior:
Users should be able to view the updated file
Workaround:
- Re-embedding the correct file
- For users attempting to view the file, the download button still works and downloads the file so that it can be viewed locally
Steps to Reproduce:
- Create a file locally (e.g. a simple .txt)
- Create a Course
- Create a Page
- Upload and embed the file you’ve created on the page, set it to {{Preview in overlay}}. Click Save and Publish
- Take note of the file’s id in the embed
- Update the file locally (add/remove anything in the file)
- Upload the updated file and replace the old one
- Attempt to open the file’s preview on the page
- Observe the error
- Note that the file’s id has not changed