Se controla si un archivo es creado mediante upload o post y se agrega validacion

This commit is contained in:
Daniel Rojas
2014-03-10 14:35:14 -04:00
parent fad1f10287
commit e17ed479a1

View File

@@ -186,7 +186,7 @@ class FilesManager
$content = $aData['prf_content'];
if (is_string($content)) {
if (file_exists(PATH_SEP.$sDirectory)) {
throw (new \Exception( 'The file: '. $sDirectory . ' already exists.'));
throw (new \Exception( 'The file: '.$sMainDirectory. PATH_SEP . $sSubDirectory . $aData['prf_filename'] . ' already exists.'));
}
}
if (!file_exists($sCheckDirectory)) {