# defender-security/6.3.0/lib/packages/Psr/Http/Message/UploadedFileFactoryInterface.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.3.0. 35 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Psr/Http/Message/UploadedFileFactoryInterface.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.3.0/raw/lib/packages/Psr/Http/Message/UploadedFileFactoryInterface.php
- Modified: 2026-08-24T08:19:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Psr/Http/Message/UploadedFileFactoryInterface.php#L10-L20`.

```php
<?php

namespace WP_DEFENDER_VENDOR\Psr\Http\Message;

interface UploadedFileFactoryInterface
{
    /**
     * Create a new uploaded file.
     *
     * If a size is not provided it will be determined by checking the size of
     * the file.
     *
     * @see http://php.net/manual/features.file-upload.post-method.php
     * @see http://php.net/manual/features.file-upload.errors.php
     *
     * @param StreamInterface $stream Underlying stream representing the
     *     uploaded file content.
     * @param int|null $size in bytes
     * @param int $error PHP file upload error
     * @param string|null $clientFilename Filename as provided by the client, if any.
     * @param string|null $clientMediaType Media type as provided by the client, if any.
     *
     * @return UploadedFileInterface
     *
     * @throws \InvalidArgumentException If the file resource is not readable.
     */
    public function createUploadedFile(
        StreamInterface $stream,
        ?int $size = null,
        int $error = \UPLOAD_ERR_OK,
        ?string $clientFilename = null,
        ?string $clientMediaType = null
    ): UploadedFileInterface;
}

```
