So I’m on a fun one here. Can’t seem to figure out what is going on.
I have Strapi setup on Heroku using the built in Postgres option with Heroku. When I try to access /upload while I am authenticated I get a 403 error. First thing I did was log into Strapi and check to see if my roles were setup correctly. I checked my Authenticated Role and found that upload was checked. So any authenticated user in theory should be able to upload. Yet I get a 403 error everytime. I am also using cloudinary for image optimaiztion. I can upload via stapi fine but can’t via my frontend thats when I get the 403 error. I know much of the documentation show that you need to have formData properly setup and when in development it was working fine. Now that the backend is in production, I get the 403 error. I can’t seem to figure out why I am getting this error.
Hey @frostyKlosty . I’m experiencing the same error now and was wondering if you could give a little bit more information about how you solved this problem. I’m trying to uploading images from within Strapi’s admin portal and am also seeing a 403 error.
To confirm: that’s not what you were experiencing, right? It seems like you were trying to hit the /uploads endpoint externally? If it was inside of the admin portal, can you give me some more detail on how you fixed this? I’m not clear on where I would set a bearer token here, nor why I should have to.
Facing the same issue, the worst part is the 403 forbidden error is shown randomly, means for some files the upload works, for other random files it doesn’t,
The issue is on both side, from strapi admin panel upload plugin, and from any other client side project !!
hi there, what does it mean bearer token?
i had such a problem, resolved with setting roles and permisiions.
But now on request i receive id and timestamps…
and on represent setting it mation that i should receive image. as resposnse i recieve json, so can i get image?))