1
2/*
3 +------------------------------------------------------------------------+
4 | Phalcon Framework                                                      |
5 +------------------------------------------------------------------------+
6 | Copyright (c) 2011-2017 Phalcon Team (http://www.phalconphp.com)       |
7 +------------------------------------------------------------------------+
8 | This source file is subject to the New BSD License that is bundled     |
9 | with this package in the file LICENSE.txt.                             |
10 |                                                                        |
11 | If you did not receive a copy of the license and are unable to         |
12 | obtain it through the world-wide-web, please send an email             |
13 | to license@phalconphp.com so we can send you a copy immediately.       |
14 +------------------------------------------------------------------------+
15 | Authors: Andres Gutierrez <andres@phalconphp.com>                      |
16 |          Eduar Carvajal <eduar@phalconphp.com>                         |
17 +------------------------------------------------------------------------+
18 */
19
20namespace Phalcon\Http\Request;
21
22/**
23 * Phalcon\Http\Request\FileInterface
24 *
25 * Interface for Phalcon\Http\Request\File
26 *
27 */
28interface FileInterface
29{
30	/**
31	 * Returns the file size of the uploaded file
32	 */
33	public function getSize() -> int;
34
35	/**
36	 * Returns the real name of the uploaded file
37	 */
38	public function getName() -> string;
39
40	/**
41	 * Returns the temporal name of the uploaded file
42	 */
43	public function getTempName() -> string;
44
45	/**
46	 * Returns the mime type reported by the browser
47	 * This mime type is not completely secure, use getRealType() instead
48	 */
49	public function getType() -> string;
50
51	/**
52	 * Gets the real mime type of the upload file using finfo
53	 */
54	public function getRealType() -> string;
55
56	/**
57	 * Move the temporary file to a destination
58	 */
59	public function moveTo(string! destination) -> boolean;
60
61}
62