Merge pull request #1 from rohit-ambre-uno/bugfix/FileUpload-78
File Upload error Resolved
This commit is contained in:
@@ -2440,7 +2440,8 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
|
|||||||
$data = http_formdata_flat_hierarchy( $request );
|
$data = http_formdata_flat_hierarchy( $request );
|
||||||
// check if any files are in the $_FILES global array
|
// check if any files are in the $_FILES global array
|
||||||
// and add them to the curl POST
|
// 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) {
|
foreach ($_FILES['form']['name'] as $key => $file) {
|
||||||
if (is_array($file)) {
|
if (is_array($file)) {
|
||||||
// it's a grid which contains documents
|
// it's a grid which contains documents
|
||||||
|
|||||||
Reference in New Issue
Block a user