Fix empty file fields

Fix for empty file fields when not all upload fields are used.
This commit is contained in:
Derek Kaijser 2017-03-02 12:46:13 +13:00 committed by GitHub
parent e0d9399654
commit 9a5144104c

View File

@ -679,7 +679,7 @@ JS
if (!empty($data[$field->Name])) {
if (in_array("EditableFileField", $field->getClassAncestry())) {
if (isset($_FILES[$field->Name])) {
if (!empty($_FILES[$field->Name]['name'])) {
$foldername = $field->getFormField()->getFolderName();
// create the file from post data