Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

suubcs's avatar

MethodNotAllowedHttpException if request has base64 image data

Hi, I've a problem when I'm sending HTTP request containing base64 image data it throws " MethodNotAllowedHttpException ", but if the request doesn't contain a base64 data it works fine. PS: the same request works on my localhost, but not working on my shared web hosting.

example of the request :

https://prnt.sc/jjybgw

0 likes
4 replies
suubcs's avatar

I've set the max post size to 128MO, like I've already said the request works normally in localhost, but in shared hosting don't work. please, do you have any suggestion?

siangboon's avatar
Level 54

i encountered a similar issue and resolved it by disabled the mod_security setting in the shared hosting.

1 like

Please or to participate in this conversation.