diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 49ab4823b2..a52e770dd7 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -75,7 +75,7 @@ fi # Set upload directory if [ "$PLATFORM" = "embedded" -o "$PLATFORM" = "nanobsd" ]; then - UPLOADTMPDIR="/root" + UPLOADTMPDIR=`/usr/bin/grep upload_path /etc/inc/globals.inc | /usr/bin/cut -d'"' -f4` else UPLOADTMPDIR="/tmp" fi