---
title: "Accessing uploaded files"
date: "2014-11-10"
category: "php"
slug: "accessing-uploaded-files"
---

By default, uploaded files are stored under `/tmp`, which is outside the pivot root of your account's filesystem. These files can only be accessed by PHP. If you need to inspect uploaded files for debugging, you can change the upload directory.

## Solution

Adjust PHP's `upload_tmp_dir` setting via [[changing-php-settings]]. Use the value from the [[logging-into-the-control-panel]] under **Account** > **Summary** > **Web** > **HTTP Base Prefix**, appended with `/tmp`.

### Example

If your **HTTP Base Prefix** is `/home/virtual/site125/fst`, add the following to a [[htaccess-guide]] file:

`php_value upload_tmp_dir /home/virtual/site125/fst/tmp`
