Strapi posting media relation when user sign up

Hi,

I have created a user sign up page. That also contains media fields. All fields relates to strapi’s built in user content type.

The question is that once user submits their data, non media data got posted to user content type auth/local/register through front end.

Then i get new user’s id and jwt through response and post media fields to upload endpoint api/upload with reference to that user’s id and also that user’s jwt in header through front end as well.

This approach is currently working as media fields are optional. But if media fields are required then how can i post user data including media fields to auth/local/register endpoint?

Thanks

This topic has been created from a Discord post (1267680884052594861) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

strapi how to post media relation when user sign up using auth/local/register