__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Laminas\Diactoros;
use function sprintf;
/**
* Create an uploaded file instance from an array of values.
*
* @param array $spec A single $_FILES entry.
* @throws Exception\InvalidArgumentException If one or more of the tmp_name,
* size, or error keys are missing from $spec.
*/
function createUploadedFile(array $spec): UploadedFile
{
if (
! isset($spec['tmp_name'])
|| ! isset($spec['size'])
|| ! isset($spec['error'])
) {
throw new Exception\InvalidArgumentException(sprintf(
'$spec provided to %s MUST contain each of the keys "tmp_name",'
. ' "size", and "error"; one or more were missing',
__FUNCTION__
));
}
return new UploadedFile(
$spec['tmp_name'],
(int) $spec['size'],
$spec['error'],
$spec['name'] ?? null,
$spec['type'] ?? null
);
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| create_uploaded_file.legacy.php | File | 397 B | 0664 |
|
| create_uploaded_file.php | File | 937 B | 0664 |
|
| marshal_headers_from_sapi.legacy.php | File | 375 B | 0664 |
|
| marshal_headers_from_sapi.php | File | 1.8 KB | 0664 |
|
| marshal_method_from_sapi.legacy.php | File | 371 B | 0664 |
|
| marshal_method_from_sapi.php | File | 233 B | 0664 |
|
| marshal_protocol_version_from_sapi.legacy.php | File | 416 B | 0664 |
|
| marshal_protocol_version_from_sapi.php | File | 721 B | 0664 |
|
| marshal_uri_from_sapi.legacy.php | File | 397 B | 0664 |
|
| marshal_uri_from_sapi.php | File | 6.8 KB | 0664 |
|
| normalize_server.legacy.php | File | 387 B | 0664 |
|
| normalize_server.php | File | 1.52 KB | 0664 |
|
| normalize_uploaded_files.legacy.php | File | 374 B | 0664 |
|
| normalize_uploaded_files.php | File | 4 KB | 0664 |
|
| parse_cookie_header.legacy.php | File | 489 B | 0664 |
|
| parse_cookie_header.php | File | 1.02 KB | 0664 |
|