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 July 8, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help! If you get an error, visit https://lithiumhosting.com/support instead.
Contact Support