Skip to step content

Files

Step 3 of 4 in Files

Sample data, read from content-sdk

Replacing a file

Ben published this Teach Book in May. Later, Ana replaces its PDF with a revised one, marked “Revised” across its first page.

Your saves wait for a curriculum manager to publish them. A file doesn't: files have no working and published versions, so readers get a replacement right away. If you've used Strapi's media library, it's the same there.

Try it: compare the file readers see with the file's history.

Loading Length, Perimeter, and Area Teach Book's file and its history

Nobody published anything. The Teach Book is still published, with no new save of its own: only its file changed. The first PDF is still kept, but nothing shows it any more.