Hi,
i'm in a windows environment, using a NAS as Storage.
My NAS is named 'nas1', and if pointing to that nas like '//nas1/dms/documents/' (UNC-Naming) some strange things happen and an error occurs, no document is stored while uploading, resp. stored in the app-path itself?
So i modified the 'inc.FileUtils.php' reading like this:
************************************************
function makeDir($path)
{
#modification start
if(substr($path,0,6)=='//nas1')
{
mkdir($path,0777,true);
return true;
}
#modification end
if (strncmp($path, DIRECTORY_SEPARATOR, 1) == 0) {
$mkfolder = DIRECTORY_SEPARATOR;
}
else {
$mkfolder = "";
}
$path = preg_split( "/[\\\\\/]/" , $path );
.....
************************************************
Ok, i first want to hear if this isn't good using mkdir this way.
If no complaints than i will do some more work on it.
Regards
Jörg
i'm in a windows environment, using a NAS as Storage.
My NAS is named 'nas1', and if pointing to that nas like '//nas1/dms/documents/' (UNC-Naming) some strange things happen and an error occurs, no document is stored while uploading, resp. stored in the app-path itself?
So i modified the 'inc.FileUtils.php' reading like this:
************************************************
function makeDir($path)
{
#modification start
if(substr($path,0,6)=='//nas1')
{
mkdir($path,0777,true);
return true;
}
#modification end
if (strncmp($path, DIRECTORY_SEPARATOR, 1) == 0) {
$mkfolder = DIRECTORY_SEPARATOR;
}
else {
$mkfolder = "";
}
$path = preg_split( "/[\\\\\/]/" , $path );
.....
************************************************
Ok, i first want to hear if this isn't good using mkdir this way.
If no complaints than i will do some more work on it.
Regards
Jörg