Source for file FileUpload.php
Documentation is available at FileUpload.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: * Text box and browse button that allow users to select a file to upload to the server.
- 29: *
- 33: */
- 35: {
- 37: /**
- 39: */
- 41: {
- 45: }
- 49: /**
- 50: * This method will be called when the component (or component's parent)
- 51: * becomes attached to a monitored object. Do not call this method yourself.
- 54: */
- 56: {
- 59: }
- 60: }
- 64: /**
- 65: * Sets control's value.
- 68: */
- 70: {
- 78: // TODO: or create object?
- 80: }
- 81: }
- 85: /**
- 86: * Filled validator: has been any file uploaded?
- 89: */
- 91: {
- 94: }
- 98: /**
- 99: * FileSize validator: is file size in limit?
- 103: */
- 105: {
- 108: }
- 112: /**
- 113: * MimeType validator: has file specified mime type?
- 117: */
- 119: {
- 126: }
- 130: }
- 133: }
- 134: }
- 136: }
- 138: }