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 http://nettephp.com
- 12: *
- 18: */
- 26: /**
- 27: * Provides access to individual files that have been uploaded by a client.
- 28: *
- 32: *
- 41: */
- 43: {
- 44: /* @var string */
- 47: /* @var string */
- 50: /* @var string */
- 53: /* @var string */
- 56: /* @var int */
- 62: {
- 67: }
- 68: }
- 69: //if (!is_uploaded_file($value['tmp_name'])) {
- 70: //throw new InvalidStateException("Filename '$value[tmp_name]' is not a valid uploaded file.");
- 71: //}
- 76: }
- 80: /**
- 81: * Returns the file name.
- 83: */
- 85: {
- 87: }
- 91: /**
- 92: * Returns the MIME content type of an uploaded file.
- 94: */
- 96: {
- 107: }
- 111: }
- 112: }
- 114: }
- 118: /**
- 119: * Returns the size of an uploaded file.
- 121: */
- 123: {
- 125: }
- 129: /**
- 130: * Returns the path to an uploaded file.
- 132: */
- 134: {
- 136: }
- 140: /**
- 141: * Returns the path to an uploaded file.
- 143: */
- 145: {
- 147: }
- 151: /**
- 154: */
- 156: {
- 158: }
- 162: /**
- 163: * Is there any error?
- 165: */
- 167: {
- 169: }
- 173: /**
- 174: * Move uploaded file to new location.
- 177: */
- 179: {
- 182: }
- 185: }
- 189: /**
- 190: * Is uploaded file GIF, PNG or JPEG?
- 192: */
- 194: {
- 196: }
- 200: /**
- 201: * Returns the image.
- 203: */
- 205: {
- 207: }
- 211: /**
- 212: * Returns the dimensions of an uploaded image as array.
- 214: */
- 216: {
- 218: }
- 220: }