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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.