fix: initialize tmp_name as empty string instead of null

pull/664/head
KnifeLemon 3 weeks ago
parent 41dc0e3678
commit bbf5204da6

@ -650,7 +650,7 @@ class Request
'name' => $headers['content-disposition']['filename'], 'name' => $headers['content-disposition']['filename'],
'type' => $headers['content-type'] ?? 'application/octet-stream', 'type' => $headers['content-type'] ?? 'application/octet-stream',
'size' => mb_strlen($value, '8bit'), 'size' => mb_strlen($value, '8bit'),
'tmp_name' => null, 'tmp_name' => '',
'error' => UPLOAD_ERR_OK, 'error' => UPLOAD_ERR_OK,
]; ];

Loading…
Cancel
Save