CoreFiles by mySites.guru
UploadedFileFactoryInterface.php28 lines, 1,113 bytes, from wordpress-7.2-beta2.zip
Raw History Compare with 7.2-beta1
md5
bb9a66a41afaa51e614a6e5ac8f3ed2a
sha1
d8c49a0c37be4e1eec3d66206ddd5cac99a63ce9
sha256
ed3f7860e546e90f95256b70af3535bb3391fb60418ebceaf9f8645fbd4236ea
<?php

namespace WordPress\AiClientDependencies\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;
}

The same content is in 44 releases, WordPress 7.0-beta1 to 7.2-RC2. See them all, or every version of this file.