Payload validation error: 'object didn't pass validation for format strict-uri: auth0

Hi there,

I am consuming the api to change a user’s image but I am getting this error

Payload validation error: ‘Object didn’t pass validation for format strict-uri: c:\Users\scotta\Documents\BextSocial\BextSocial\public\uploads\as250px-Bosque.jpg’ on property picture (URL to picture, photo, or avatar of this user).

What is the reason for this and how can I solve it?

Thanks for the support

Hi and thank you for joining Auth0 Community!

You won’t be able to host images off your local hard disk, the picture URL will need to be a publicly available web address

gravitar example: https://www.gravatar.com/avatar/

Let us know if you have any questions, thanks!

2 Likes

Thanks for providing that knowledge Marcus!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.