1. Startseite
  2. PHP
  3. Zugriff auf hochgeladene Dateien

Zugriff auf hochgeladene Dateien

Übersicht

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.

Lösung

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

Beispiel

If HTTP Base Prefix ist /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

Aktualisiert am März 7, 2021

Verwandte Artikel