File: /home/panomity.de/vr.panomity.com/test-upload.php
<?php
/**
* Simple upload test script
*/
header('Content-Type: application/json');
$debug = [
'php_version' => PHP_VERSION,
'post_keys' => array_keys($_POST),
'files_keys' => array_keys($_FILES),
'files_raw' => $_FILES,
'server_content_length' => $_SERVER['CONTENT_LENGTH'] ?? 'not set',
'server_content_type' => $_SERVER['CONTENT_TYPE'] ?? 'not set',
'php_limits' => [
'upload_max_filesize' => ini_get('upload_max_filesize'),
'post_max_size' => ini_get('post_max_size'),
'max_execution_time' => ini_get('max_execution_time'),
'max_input_time' => ini_get('max_input_time'),
],
'tmp_dir' => sys_get_temp_dir(),
'tmp_writable' => is_writable(sys_get_temp_dir()),
];
echo json_encode($debug, JSON_PRETTY_PRINT);