Source for file HttpUploadedFile.php
Documentation is available at HttpUploadedFile.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see https://nette.org
- 12: *
- 19: */
- 27: /**
- 28: * Provides access to individual files that have been uploaded by a client.
- 29: *
- 33: */
- 35: {
- 36: /* @var string */
- 39: /* @var string */
- 42: /* @var string */
- 45: /* @var string */
- 48: /* @var string */
- 51: /* @var int */
- 57: {
- 62: }
- 63: }
- 64: //if (!is_uploaded_file($value['tmp_name'])) {
- 65: //throw new InvalidStateException("Filename '$value[tmp_name]' is not a valid uploaded file.");
- 66: //}
- 72: }
- 76: /**
- 77: * Returns the file name.
- 79: */
- 81: {
- 83: }
- 87: /**
- 88: * Returns the MIME content type of an uploaded file.
- 90: */
- 92: {
- 103: }
- 104: }
- 106: }
- 110: /**
- 111: * Returns the size of an uploaded file.
- 113: */
- 115: {
- 117: }
- 121: /**
- 122: * Returns the path to an uploaded file.
- 124: */
- 126: {
- 128: }
- 132: /**
- 133: * Returns the image.
- 135: */
- 137: {
- 139: }
- 143: /**
- 144: * Returns the path to an uploaded file.
- 146: */
- 148: {
- 150: }
- 154: /**
- 155: * Returns the error code.
- 157: */
- 159: {
- 161: }
- 165: /**
- 166: * Is there any error?
- 168: */
- 170: {
- 172: }
- 176: /**
- 177: * Move uploaded file to new location.
- 180: */
- 182: {
- 189: }
- 190: }
- 194: /**
- 195: * Returns the dimensions of an uploaded image as array.
- 197: */
- 199: {
- 201: }
- 203: }