Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../psr/http-mes.../src
File: UploadedFileInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\Psr\Http\Message;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Value object representing a file uploaded through an HTTP request.
[5] Fix | Delete
*
[6] Fix | Delete
* Instances of this interface are considered immutable; all methods that
[7] Fix | Delete
* might change state MUST be implemented such that they retain the internal
[8] Fix | Delete
* state of the current instance and return an instance that contains the
[9] Fix | Delete
* changed state.
[10] Fix | Delete
*/
[11] Fix | Delete
interface UploadedFileInterface
[12] Fix | Delete
{
[13] Fix | Delete
/**
[14] Fix | Delete
* Retrieve a stream representing the uploaded file.
[15] Fix | Delete
*
[16] Fix | Delete
* This method MUST return a StreamInterface instance, representing the
[17] Fix | Delete
* uploaded file. The purpose of this method is to allow utilizing native PHP
[18] Fix | Delete
* stream functionality to manipulate the file upload, such as
[19] Fix | Delete
* stream_copy_to_stream() (though the result will need to be decorated in a
[20] Fix | Delete
* native PHP stream wrapper to work with such functions).
[21] Fix | Delete
*
[22] Fix | Delete
* If the moveTo() method has been called previously, this method MUST raise
[23] Fix | Delete
* an exception.
[24] Fix | Delete
*
[25] Fix | Delete
* @return StreamInterface Stream representation of the uploaded file.
[26] Fix | Delete
* @throws \RuntimeException in cases when no stream is available or can be
[27] Fix | Delete
* created.
[28] Fix | Delete
*/
[29] Fix | Delete
public function getStream() : \YoastSEO_Vendor\Psr\Http\Message\StreamInterface;
[30] Fix | Delete
/**
[31] Fix | Delete
* Move the uploaded file to a new location.
[32] Fix | Delete
*
[33] Fix | Delete
* Use this method as an alternative to move_uploaded_file(). This method is
[34] Fix | Delete
* guaranteed to work in both SAPI and non-SAPI environments.
[35] Fix | Delete
* Implementations must determine which environment they are in, and use the
[36] Fix | Delete
* appropriate method (move_uploaded_file(), rename(), or a stream
[37] Fix | Delete
* operation) to perform the operation.
[38] Fix | Delete
*
[39] Fix | Delete
* $targetPath may be an absolute path, or a relative path. If it is a
[40] Fix | Delete
* relative path, resolution should be the same as used by PHP's rename()
[41] Fix | Delete
* function.
[42] Fix | Delete
*
[43] Fix | Delete
* The original file or stream MUST be removed on completion.
[44] Fix | Delete
*
[45] Fix | Delete
* If this method is called more than once, any subsequent calls MUST raise
[46] Fix | Delete
* an exception.
[47] Fix | Delete
*
[48] Fix | Delete
* When used in an SAPI environment where $_FILES is populated, when writing
[49] Fix | Delete
* files via moveTo(), is_uploaded_file() and move_uploaded_file() SHOULD be
[50] Fix | Delete
* used to ensure permissions and upload status are verified correctly.
[51] Fix | Delete
*
[52] Fix | Delete
* If you wish to move to a stream, use getStream(), as SAPI operations
[53] Fix | Delete
* cannot guarantee writing to stream destinations.
[54] Fix | Delete
*
[55] Fix | Delete
* @see http://php.net/is_uploaded_file
[56] Fix | Delete
* @see http://php.net/move_uploaded_file
[57] Fix | Delete
* @param string $targetPath Path to which to move the uploaded file.
[58] Fix | Delete
* @throws \InvalidArgumentException if the $targetPath specified is invalid.
[59] Fix | Delete
* @throws \RuntimeException on any error during the move operation, or on
[60] Fix | Delete
* the second or subsequent call to the method.
[61] Fix | Delete
*/
[62] Fix | Delete
public function moveTo(string $targetPath) : void;
[63] Fix | Delete
/**
[64] Fix | Delete
* Retrieve the file size.
[65] Fix | Delete
*
[66] Fix | Delete
* Implementations SHOULD return the value stored in the "size" key of
[67] Fix | Delete
* the file in the $_FILES array if available, as PHP calculates this based
[68] Fix | Delete
* on the actual size transmitted.
[69] Fix | Delete
*
[70] Fix | Delete
* @return int|null The file size in bytes or null if unknown.
[71] Fix | Delete
*/
[72] Fix | Delete
public function getSize() : ?int;
[73] Fix | Delete
/**
[74] Fix | Delete
* Retrieve the error associated with the uploaded file.
[75] Fix | Delete
*
[76] Fix | Delete
* The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.
[77] Fix | Delete
*
[78] Fix | Delete
* If the file was uploaded successfully, this method MUST return
[79] Fix | Delete
* UPLOAD_ERR_OK.
[80] Fix | Delete
*
[81] Fix | Delete
* Implementations SHOULD return the value stored in the "error" key of
[82] Fix | Delete
* the file in the $_FILES array.
[83] Fix | Delete
*
[84] Fix | Delete
* @see http://php.net/manual/en/features.file-upload.errors.php
[85] Fix | Delete
* @return int One of PHP's UPLOAD_ERR_XXX constants.
[86] Fix | Delete
*/
[87] Fix | Delete
public function getError() : int;
[88] Fix | Delete
/**
[89] Fix | Delete
* Retrieve the filename sent by the client.
[90] Fix | Delete
*
[91] Fix | Delete
* Do not trust the value returned by this method. A client could send
[92] Fix | Delete
* a malicious filename with the intention to corrupt or hack your
[93] Fix | Delete
* application.
[94] Fix | Delete
*
[95] Fix | Delete
* Implementations SHOULD return the value stored in the "name" key of
[96] Fix | Delete
* the file in the $_FILES array.
[97] Fix | Delete
*
[98] Fix | Delete
* @return string|null The filename sent by the client or null if none
[99] Fix | Delete
* was provided.
[100] Fix | Delete
*/
[101] Fix | Delete
public function getClientFilename() : ?string;
[102] Fix | Delete
/**
[103] Fix | Delete
* Retrieve the media type sent by the client.
[104] Fix | Delete
*
[105] Fix | Delete
* Do not trust the value returned by this method. A client could send
[106] Fix | Delete
* a malicious media type with the intention to corrupt or hack your
[107] Fix | Delete
* application.
[108] Fix | Delete
*
[109] Fix | Delete
* Implementations SHOULD return the value stored in the "type" key of
[110] Fix | Delete
* the file in the $_FILES array.
[111] Fix | Delete
*
[112] Fix | Delete
* @return string|null The media type sent by the client or null if none
[113] Fix | Delete
* was provided.
[114] Fix | Delete
*/
[115] Fix | Delete
public function getClientMediaType() : ?string;
[116] Fix | Delete
}
[117] Fix | Delete
[118] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function