mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-09 21:45:29 +00:00
Fix #345: Allow POSTing multidimensional array with file
This commit is contained in:
@@ -110,8 +110,13 @@ if ($test === 'http_basic_auth') {
|
||||
} elseif ($test === 'patch') {
|
||||
echo $http_raw_post_data;
|
||||
exit;
|
||||
} elseif ($test === 'post_multidimensional') {
|
||||
echo $http_raw_post_data;
|
||||
} elseif ($test === 'post_multidimensional' ||
|
||||
$test === 'post_multidimensional_with_file') {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array(
|
||||
'post' => $_POST,
|
||||
'files' => $_FILES,
|
||||
), JSON_PRETTY_PRINT);
|
||||
exit;
|
||||
} elseif ($test === 'post_file_path_upload') {
|
||||
echo Helper\mime_type($_FILES[$key]['tmp_name']);
|
||||
|
||||
Reference in New Issue
Block a user