Upload image file and data to API from form in Next js

If you want to upload files during entry creation, it is a little bit different.

I’ve created a Codesandbox to show you how it works: