# I uploaded a picture but got blocked or something, not sure why

**URL:** <https://forum.profreehost.com/t/i-uploaded-a-picture-but-got-blocked-or-something-not-sure-why/13413>\
**Category:** Hosting Support\
**Created:** [October 21, 2026, 9:16pm UTC](https://forum.profreehost.com/t/i-uploaded-a-picture-but-got-blocked-or-something-not-sure-why/13413 "2026-10-21T21:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awmnzx095](https://forum.profreehost.com/letter_avatar_proxy/v4/letter/a/3d9bf3/32.png) [@awmnzx095](https://forum.profreehost.com/u/awmnzx095)\
**Post date:** [October 21, 2026, 9:16pm UTC](https://forum.profreehost.com/t/i-uploaded-a-picture-but-got-blocked-or-something-not-sure-why/13413/1 "2026-10-21T21:16:23Z")

</div>

Hello ProFreeHost Support,

My website is

When I upload an image from the admin page, the request to `/upload_image.php` returns `403 Forbidden` with an OpenResty HTML error page.

The request is sent using `fetch()` with `POST` and `multipart/form-data`. Could you please check whether a server security rule or WAF is blocking this request before it reaches PHP?

The hosting server blocked the upload request before it reached PHP (403 openresty). Please contact your hosting provider to check the POST blocking for /upload\_image.php.

Thank you.

---

<div class="post-metadata">

**Author:** ![Frost](https://forum.profreehost.com/user_avatar/forum.profreehost.com/frost/32/447_2.png) [@Frost](https://forum.profreehost.com/u/Frost)\
**Post date:** [October 21, 2026, 9:17pm UTC](https://forum.profreehost.com/t/i-uploaded-a-picture-but-got-blocked-or-something-not-sure-why/13413/2 "2026-10-21T21:17:54Z")

</div>

Hi there, welcome to the forum!

You’re right, the 403 page from openresty is the server’s security filter blocking the request before it reaches PHP. This filter can’t be disabled or whitelisted on free hosting, so the upload request needs to be adjusted so it passes.

Common triggers for image uploads:

1. **File name.** Use a short, simple name like `photo1.jpg`. Avoid spaces, special characters, or double extensions (e.g. `image.php.jpg`).

2. **Image metadata.** Some images carry EXIF data or embedded text that gets flagged. Try re-saving the image (or test with a small, freshly exported JPG/PNG).

3. **Content-Type header.** When sending `FormData` with `fetch()`, don’t set the `Content-Type` header manually. Let the browser set it so the multipart boundary is correct. A malformed multipart request is often blocked.

4. **Extra form fields.** If you send other fields along with the file, test with the file alone first.

If a simple test image uploads fine, the issue is with the specific file or request data. Also, your website address didn’t come through in your post, so please share it if the problem continues after these checks.

---

<div class="post-metadata">

**Author:** ![system](https://forum.profreehost.com/user_avatar/forum.profreehost.com/system/32/104_2.png) [@system](https://forum.profreehost.com/u/system)\
**Post date:** [November 20, 2026, 9:18pm UTC](https://forum.profreehost.com/t/i-uploaded-a-picture-but-got-blocked-or-something-not-sure-why/13413/3 "2026-11-20T21:18:43Z")

</div>

Closed on November 20, 2026, 9:18pm UTC

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