This works for me, but I made few tests, 'cause I just wrote it 10 minutes ago.
Maybe the switch can be restricted just to Image and Flash, I dunno if File and Media have their own direct upload system. Well, this way should not cause problem aswell.
RE: Filemanager upload
Pick up the file filemanager/upload/php/upload.php
After these lines (around line 71):
// The the target directory.
if ( isset( $Config['UserFilesAbsolutePath'] ) )
$sServerDir = $Config['UserFilesAbsolutePath'] ;
else
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
Write these new lines:
switch ($sType) {
case 'File' :
$sServerDir .= "File/";
$for_result_sending = "File/";
break;
case 'Image':
$sServerDir .= "Image/";
$for_result_sending = "Image/";
break;
case 'Flash':
$sServerDir .= "Flash/";
$for_result_sending = "Flash/";
break;
case 'Media':
$sServerDir .= "Media/";
$for_result_sending = "Media/";
break;
}
and about at the bottom of the file, replace this line:
$sFileUrl = $Config["UserFilesPath"] . $sFileName ;
with this new one:
$sFileUrl = $Config["UserFilesPath"] . $for_result_sending . $sFileName ;
This works for me, but I made few tests, 'cause I just wrote it 10 minutes ago.
Maybe the switch can be restricted just to Image and Flash, I dunno if File and Media have their own direct upload system. Well, this way should not cause problem aswell.