Я использую этот веб-сервис для объединения файлов. Можете ли вы мне помочь, что не так с моим PHP?
Файл Curl должен быть таким:
Код: Выделить всё
CURLOPT_POSTFIELDS => array(
'files'=> new CURLFILE('postman-cloud:///1ef093ea-b5df-4aa0-8b36-13c1aaad7e17'),
'files'=> new CURLFILE('postman-cloud:///1ef093ea-d5f4-48e0-b651-e5fd8820fb86'),
'files'=> new CURLFILE('postman-cloud:///1ef093ea-d5f4-48e0-b651-e5fd8820fb86')
),
));
Код: Выделить всё
$files = array();
foreach ($fileTtable as $Id)
{
$files[] =array('files'=> new CURLFILE($originalFilepath[$Id]));
}
$this->dump($files);
Код: Выделить всё
Array
( [0] => Array
( [files] => CURLFile Object
( [name] => \uploads\000/000/043/214/Nyilatkozat munkab_r utal_sr_l_1173.pdf [mime] => [postname] =>
)
)
[1] => Array
( [files] => CURLFile Object
( [name] => \uploads\000/000/043/212/_zemorvosi beutal_.pdf [mime] => [postname] =>
)
)
)
Подробнее здесь: https://stackoverflow.com/questions/784 ... y-for-curl
Мобильная версия