mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
- remove entry for uploaded file if drop folder file was selected
This commit is contained in:
parent
ec90ee5a09
commit
8c0f37c7f6
|
@ -53,7 +53,7 @@ $comment = $_POST["comment"];
|
|||
$version_comment = $_POST["version_comment"];
|
||||
|
||||
$keywords = $_POST["keywords"];
|
||||
$categories = $_POST["categories"];
|
||||
$categories = isset($_POST["categories"]) ? $_POST["categories"] : null;
|
||||
if(isset($_POST["attributes"]))
|
||||
$attributes = $_POST["attributes"];
|
||||
else
|
||||
|
@ -155,6 +155,11 @@ if($settings->_dropFolderDir) {
|
|||
if($_POST["dropfolderfileform1"]) {
|
||||
$fullfile = $settings->_dropFolderDir.'/'.$user->getLogin().'/'.$_POST["dropfolderfileform1"];
|
||||
if(file_exists($fullfile)) {
|
||||
/* Check if a local file is uploaded as well */
|
||||
if(isset($_FILES["userfile"]['error'][0])) {
|
||||
if($_FILES["userfile"]['error'][0] != 0)
|
||||
$_FILES["userfile"] = array();
|
||||
}
|
||||
$finfo = finfo_open(FILEINFO_MIME);
|
||||
$mimetype = explode(';', finfo_file($finfo, $fullfile));
|
||||
$_FILES["userfile"]['tmp_name'][] = $fullfile;
|
||||
|
|
Loading…
Reference in New Issue
Block a user