remove file from drop folder if requested by documentation

This commit is contained in:
Uwe Steinmann 2016-11-07 08:53:49 +01:00
parent 531b645a2d
commit a5c6a0cd5b

View File

@ -376,6 +376,11 @@ if ($_FILES['userfile']['error'] == 0) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
}
if($settings->_removeFromDropFolder) {
if(file_exists($userfiletmp)) {
unlink($userfiletmp);
}
}
}
add_log_line("?documentid=".$documentid);