1. Home
  2. PHP
  3. Accessing uploaded files

Accessing uploaded files

Overview

By default, uploaded files are stored under /tmp, which is outside the pivot root of your account’s filesystem. These files may be accessed only by PHP. In certain circumstances, you may want to keep a copy of uploaded files for debugging.

Solution

Upload path can be adjusted by changing PHP’s tunable settingupload_tmp_dir. Use the value within the control panel from AccountSummaryWebHTTP Base Prefix/tmp.

Example

If HTTP Base Prefix is /home/virtual/site125/fst, then use the following value for upload_tmp_dir is valid in a .htaccess file:

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

Updated on March 7, 2021

Related Articles