Those files should be uploading to /ultmp which, on you last machine, should be stored in the storage partition. Check to see that the appropriate symbolic links are being created from /ultmp to /storage/ultmp
Yes, already checked, the symlink seem OK:
ls -al /ultmp
lrwxr-xr-x 1 root wheel 14 Aug 18 14:25 /ultmp -> /storage/ultmp
ls -al /storage
drwxr-xr-x 5 root wheel 512 Aug 9 18:41 .
drwxr-xr-x 20 root wheel 512 Aug 18 14:25 ..
drwxrwxr-x 2 root operator 512 Aug 2 17:35 .snap
drwxr-xr-x 3 root wheel 512 Aug 5 15:26 logging.pkg
drwxr-xr-x 2 root wheel 512 Aug 18 17:14 ultmp
But upload via exec.php won't work.
Done a quirk&dirty test:
- created a file via exec.php [touch /ultmp/test_upload.php]
- moved to http root [mv /ultmp/test_upload.php /usr/local/www/]
- set brute exec permission on it [chmod +x /usr/local/www/test_upload.php]
- filled this file with a dirty upload script using diag_editor.php...
#!/usr/local/bin/php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Test upload</title>
</head>
<body>
<?
if(!isset($_FILES)) $_FILES = $HTTP_POST_FILES;
if(!isset($_SERVER)) $_SERVER = $HTTP_SERVER_VARS;
// Directory were uploaded files moved
$upload_dir = '/ultmp';
//
$renameFile_name = '';
//
if (isset($_FILES['upfile']['name']))
{
if(trim($_FILES['upfile']['name']) == '')
{
echo 'No file picked for upload!!';
}
else
{
// if $renameFile_name is empty leave name as is, else rename it...
$file_name = ($renameFile_name) ? $renameFile_name : $_FILES['upfile']['name'];
if(@is_uploaded_file($_FILES['upfile']['tmp_name']))
{
@move_uploaded_file($_FILES['upfile']['tmp_name'], "$upload_dir/$file_name")
or die('An error occured moving uploaded file! Check permissions and/or settings.');
}
else
{
echo 'An error occured uploading file: ' . $_FILES['upfile']["name"];
}
echo 'File: ' . $_FILES['upfile']['name'] . ' uploaded.';
}
}
?>
<div align="center">
<br><br>
<form action="test_upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="upfile">
<input type="submit" value="Upload">
</form>
</div>
</body></html>
<?php
?>
Now my dirty script work, uploaded many files, then deleted, tried again... works, tried again upload using exec.php but won't work.