Commented out my test functionality which replaces any duplicate file uploaded through the web interface

This commit is contained in:
paul 2007-01-21 03:33:56 +00:00
parent 488dad1fd9
commit 16ca32ab29

View file

@ -147,10 +147,10 @@ class uiHandler extends uiBase {
$this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId'];
return FALSE;
} else {
$duplicate->delete();
// $this->_retMsg('The file "'.basename($formdata['mediafile']['name']).'" already exists in the database.');
// $this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId'];
// return FALSE;
//$duplicate->delete();
$this->_retMsg('The file "'.basename($formdata['mediafile']['name']).'" already exists in the database.');
$this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId'];
return FALSE;
}
}