Getting Error 401 : Unauthorized

What I’m trying to do here, Try to upload file in strapi by sending api to upload but every time I’m getting an Error 401: Unauthorized what should I do any suggestion?

My React Code

Did you allow permissions from Strapi admin itself?