Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5982998
UploadedFileFactoryInterface.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UploadedFileFactoryInterface.php
View Options
<?php
namespace
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
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:40 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8d/00/ab54d495801527367e815ffe0106
Default Alt Text
UploadedFileFactoryInterface.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment