# Multipart POST returns 403 OpenResty

**URL:** <https://forum.infinityfree.com/t/multipart-post-returns-403-openresty/121490>\
**Category:** Hosting Support\
**Created:** [October 21, 2026, 3:50pm UTC](https://forum.infinityfree.com/t/multipart-post-returns-403-openresty/121490 "2026-10-21T15:50:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoyalKnight](https://forum.infinityfree.com/letter_avatar/royalknight/32/6_449c533f586939b6e5f246632a46421f.png) [@RoyalKnight](https://forum.infinityfree.com/u/RoyalKnight)\
**Post date:** [October 21, 2026, 3:50pm UTC](https://forum.infinityfree.com/t/multipart-post-returns-403-openresty/121490/1 "2026-10-21T15:50:29Z")

</div>

### Website URL

[https://lmisdumingag.com](https://lmisdumingag.com)

### Error Message

My website is [https://lmisdumingag.com](https://lmisdumingag.com). Registration submissions return 403 Forbidden from OpenResty.  
Testing /register.php shows:

- Normal URL-encoded POST: HTTP 200, with the expected PHP validation error.
- Multipart POST containing only registration\_role=student, with no files: HTTP 403.  
Could you investigate why multipart requests are rejected and explain how to resolve it?

### Other Information

My website is [https://lmisdumingag.com](https://lmisdumingag.com). Registration submissions return 403 Forbidden from OpenResty.  
Testing /register.php shows:

- Normal URL-encoded POST: HTTP 200, with the expected PHP validation error.
- Multipart POST containing only registration\_role=student, with no files: HTTP 403.  
Could you investigate why multipart requests are rejected and explain how to resolve it?

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 21, 2026, 3:50pm UTC](https://forum.infinityfree.com/t/multipart-post-returns-403-openresty/121490/2 "2026-10-21T15:50:29Z")

</div>

Welcome to the InfinityFree community forum! Good to have you here.

- Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
- Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
- AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
- Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

---

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 21, 2026, 3:50pm UTC](https://forum.infinityfree.com/t/multipart-post-returns-403-openresty/121490/3 "2026-10-21T15:50:52Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

This looks like the same problem several other people reported today: multipart POSTs get a 403 from OpenResty, while URL-encoded POSTs work. Two of those topics are below.

Here’s one where a multipart request with a single text field and no file is blocked:

> [@POST multipart/form-data retorna 403 Forbidden (OpenResty)](https://forum.infinityfree.com/t/post-multipart-form-data-retorna-403-forbidden-openresty/121486):
>
> Website URL [https://desperdiciozero.rf.gd](https://desperdiciozero.rf.gd)Error Message erro 403 Forbidden Other Information Olá, equipe de suporte da InfinityFree! Estou enfrentando um problema no meu site hospedado na InfinityFree. Site: [https://desperdiciozero.rf.gd](https://desperdiciozero.rf.gd) Minha aplicação PHP utiliza multipart/form-data para enviar registros de auditoria e imagens. Alguns envios funcionam normalmente, enquanto outros retornam o erro 403 Forbidden, com uma página HTML identificada como openresty. Realizei alguns testes utiliz…

And one where multipart POSTs to any path on the site are blocked, and they worked until yesterday:

> [@All multipart/form-data POST requests return "403 Forbidden – openresty" since today](https://forum.infinityfree.com/t/all-multipart-form-data-post-requests-return-403-forbidden-openresty-since-today/121484):
>
> Website URL [http://svcgthanhbinh.info.vn/](http://svcgthanhbinh.info.vn/)Error Message Hello, Since today, every POST request with Content-Type: multipart/form-data to my website returns “403 Forbidden – openresty”. Until yesterday the same forms worked normally. Other Information Website: svcgthanhbinh.info.vn What I tested (requests sent from a normal browser session on the site): multipart/form-data to ANY path returns 403 openresty, including “/”, /admin/login.php and /admin/vlog\_actions.php, even when the body i…

I couldn’t find a knowledge base article or staff answer that explains the cause or gives a fix. Your tests show the 403 comes from the web server in front of PHP, so nothing in your code or settings is likely to change it. I can’t help with this one, and a person needs to have a look.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 28, 2026, 3:51pm UTC](https://forum.infinityfree.com/t/multipart-post-returns-403-openresty/121490/4 "2026-10-28T15:51:42Z")

</div>

Closed on October 28, 2026, 3:51pm UTC

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