import Intro from '/docs/snippets/breaking-change-page-intro.md'
import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md'
Upload a file at entry creation is no longer supported#
In Strapi 5, it is not possible to upload a file while creating an entry, so this should be done in 2 steps.
Breaking change description#
In Strapi v4
It was possible to upload a file while creating an entry, as .
In Strapi 5
You must upload the file first, and then create the entry with the created file id.
Migration#
Migration procedure#
Users must update their custom code, first sending a POST call to the Upload API at /api/upload/, then creating an entry with a POST call to the REST API at /api with the created file id.