mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
- check for errors when uploading the file
This commit is contained in:
parent
4481185dab
commit
e14323478d
|
@ -48,6 +48,10 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
|
|||
$name = sanitizeString($_POST["name"]);
|
||||
$comment = sanitizeString($_POST["comment"]);
|
||||
|
||||
if($_FILES["userfile"]["error"]) {
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
$userfiletmp = $_FILES["userfile"]["tmp_name"];
|
||||
$userfiletype = sanitizeString($_FILES["userfile"]["type"]);
|
||||
$userfilename = sanitizeString($_FILES["userfile"]["name"]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user