Merge pull request #1 from rohit-ambre-uno/bugfix/FileUpload-78

File Upload error Resolved
This commit is contained in:
Rohit
2019-01-29 15:13:16 +05:30
committed by GitHub

View File

@@ -2440,7 +2440,8 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
$data = http_formdata_flat_hierarchy( $request );
// check if any files are in the $_FILES global array
// and add them to the curl POST
if (isset($_FILES['form']['name'])) {
$fileForm = $_FILES['form']['name'];
if( !empty($fileForm[array_keys($fileForm)[0]][1][array_keys($fileForm[array_keys($fileForm)[0]][1])[0]]) ){
foreach ($_FILES['form']['name'] as $key => $file) {
if (is_array($file)) {
// it's a grid which contains documents