diff --git a/plugins/fabrik_element/fileupload/fileupload.php b/plugins/fabrik_element/fileupload/fileupload.php index c3a5f15999c..fd9662a1642 100644 --- a/plugins/fabrik_element/fileupload/fileupload.php +++ b/plugins/fabrik_element/fileupload/fileupload.php @@ -2596,7 +2596,13 @@ public function render($data, $repeatCounter = 0) break; } - $str[] = $allRenders . '' . "\n"; + if ($params->get('custom_label') != '') { + $str[] = $allRenders . '
' . "\n"; + } + else { + $str[] = $allRenders . '' . "\n"; + } if ($params->get('fileupload_storage_type', 'filesystemstorage') == 'filesystemstorage' && $params->get('upload_allow_folderselect') == '1') {