diff --git a/config/config.sample.php b/config/config.sample.php
index 234bf8e0fa3a690b00dd3b6edfef75f01b8b1fca..f831080d480df98663338b83f8b8246d84a0c5a2 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -79,6 +79,16 @@ $CONFIG = array(
  */
 'datadirectory' => '/var/www/owncloud/data',
 
+/**
+ * Override where ownCloud stores temporary files. Useful in situations where
+ * the system temporary directory is on a limited space ramdisk or is otherwise
+ * restricted, or if external storages which do not support streaming are in
+ * use.
+ *
+ * The web server user must have write access to this directory.
+ */
+'tempdirectory' => '/tmp/owncloudtemp',
+
 /**
  * The current version number of your ownCloud installation. This is set up
  * during installation and update, so you shouldn't need to change it.