# Uploaded files not being served on Drupal site

**URL:** <https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150>\
**Category:** Hosting Support\
**Created:** [November 25, 2026, 6:11pm UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150 "2026-11-25T18:11:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thoward](https://forum.infinityfree.com/letter_avatar/thoward/32/6_449c533f586939b6e5f246632a46421f.png) [@thoward](https://forum.infinityfree.com/u/thoward)\
**Post date:** [November 25, 2026, 6:11pm UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/1 "2026-11-25T18:11:03Z")

</div>

### Website URL

[https://genuineimitation.infinityfree.io/](https://genuineimitation.infinityfree.io/)

### Error Message

GET [https://genuineimitation.infinityfree.io/sites/default/files/inline-images/homepage.jpg](https://genuineimitation.infinityfree.io/sites/default/files/inline-images/homepage.jpg) 500 (Internal Server Error)

### Other Information

I’ve just setup an existing drupal site on infinityfree but the uploaded files are not being served. I’ve checked htaccess and permissions. I don’t know what else could be the problem? The files do exist and I see here what happens when navigating to it directly: [https://genuineimitation.infinityfree.io/sites/default/files/inline-images/homepage.jpg](https://genuineimitation.infinityfree.io/sites/default/files/inline-images/homepage.jpg)

---

<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:** [November 25, 2026, 6:11pm UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/2 "2026-11-25T18:11:03Z")

</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:** [November 25, 2026, 6:11pm UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/3 "2026-11-25T18:11:19Z")

</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._

I can’t open your link, so I don’t know what the page shows when you go to it directly. What does the browser display at the image URL? For example, is it a plain “500 Internal Server Error” page, a “Something Went Wrong!” page from us, or a Drupal-styled error page? The text on the page tells us whether the error comes from the web server, from `.htaccess`, or from Drupal. That points to very different fixes.

Could you also paste the contents of the `.htaccess` in `htdocs` and any `.htaccess` inside `sites/default/files`? You said you checked them, but the exact rules are what show whether a rewrite or a PHP-handling rule is catching image requests.

There’s a similar recent topic about images returning a 500, but it doesn’t have an answer yet, so I can’t say the cause is the same.

---

<div class="post-metadata">

**Author:** ![thoward](https://forum.infinityfree.com/letter_avatar/thoward/32/6_449c533f586939b6e5f246632a46421f.png) [@thoward](https://forum.infinityfree.com/u/thoward)\
**Post date:** [November 25, 2026, 6:14pm UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/4 "2026-11-25T18:14:23Z")

</div>

htacess in files directory:

Turn off all options we don’t need.

Options -Indexes -ExecCGI -Includes -MultiViews

# Set the catch-all handler to prevent scripts from being executed.

SetHandler Drupal\_Security\_Do\_Not\_Remove\_See\_SA\_2006\_006  
\<Files \*\>

# Override the handler again if we’re run later in the evaluation list.

SetHandler Drupal\_Security\_Do\_Not\_Remove\_See\_SA\_2013\_003

# If we know how to do it safely, disable the PHP engine entirely.
 php\_flag engine off

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [November 25, 2026, 7:25pm UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/5 "2026-11-25T19:25:59Z")

</div>

I’m not sure what you’re trying to do, but your site seems to be working fine:

 ![image](https://forum-cdn.infinityfree.net/original/3X/3/c/3ce31b090a81995efdfa8185328978164f6b7b4e.jpeg)

If you’re trying to access your site with a script, that’ll be blocked by the security system, and there is no way to disable that.

---

<div class="post-metadata">

**Author:** ![thoward](https://forum.infinityfree.com/letter_avatar/thoward/32/6_449c533f586939b6e5f246632a46421f.png) [@thoward](https://forum.infinityfree.com/u/thoward)\
**Post date:** [November 26, 2026, 8:20am UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/6 "2026-11-26T08:20:36Z")

</div>

Some images that are within the theme are working. If you scroll down there is an image within the body text which is not loading: [https://genuineimitation.infinityfree.io/sites/default/files/inline-images/homepage.jpg](https://genuineimitation.infinityfree.io/sites/default/files/inline-images/homepage.jpg)

If you open the console you’ll see 500 errors. The image exists and htaccess files are correct for Drupal.

---

<div class="post-metadata">

**Author:** ![thoward](https://forum.infinityfree.com/letter_avatar/thoward/32/6_449c533f586939b6e5f246632a46421f.png) [@thoward](https://forum.infinityfree.com/u/thoward)\
**Post date:** [November 26, 2026, 8:27am UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/7 "2026-11-26T08:27:42Z")

</div>

Okay so looks like in the htaccess file in site/default/files commenting out disabling the PHP engine entirely resolved the issue and is not required only if supported which it appears not to be.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [November 26, 2026, 8:29am UTC](https://forum.infinityfree.com/t/uploaded-files-not-being-served-on-drupal-site/122150/8 "2026-11-26T08:29:09Z")

</div>

Glad its fixed 🙂
