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

coder81's avatar

422 Unprocessable Entity when upload an image

All the images I try to upload are .jpg (lowercase) but only with some of them I got "422 Unprocessable Entity" and it happens only on the production server, the same images on the development environment work well.

0 likes
3 replies
bobbybouwmann's avatar
Level 88

Have you set up the upload size correctly on your production environment?

Also have you set the enctype="multipart/form-data" on your form?

1 like
coder81's avatar

Thank you guys, I only needed to raise the limit of php memory and uplaod size.

3 likes

Please or to participate in this conversation.