/
FileInterface.zep
53 lines (44 loc) · 1.17 KB
/
FileInterface.zep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Http\Request;
/**
* Interface for Phalcon\Http\Request\File
*/
interface FileInterface
{
/**
* Returns the error if any
*/
public function getError() -> string | null;
/**
* Returns the real name of the uploaded file
*/
public function getName() -> string;
/**
* Gets the real mime type of the upload file using finfo
*/
public function getRealType() -> string;
/**
* Returns the file size of the uploaded file
*/
public function getSize() -> int;
/**
* Returns the temporal name of the uploaded file
*/
public function getTempName() -> string;
/**
* Returns the mime type reported by the browser
* This mime type is not completely secure, use getRealType() instead
*/
public function getType() -> string;
/**
* Move the temporary file to a destination
*/
public function moveTo(string! destination) -> bool;
}