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 http://nettephp.com
- 12: *
- 18: */
- 26: /**
- 27: * Text box and browse button that allow users to select a file to upload to the server.
- 28: *
- 32: */
- 34: {
- 36: /**
- 38: */
- 40: {
- 43: }
- 47: /**
- 48: * This method will be called when the component (or component's parent)
- 49: * becomes attached to a monitored object. Do not call this method yourself.
- 52: */
- 54: {
- 58: }
- 60: }
- 62: }
- 66: /**
- 67: * Sets control's value.
- 70: */
- 72: {
- 81: }
- 83: }
- 87: /**
- 88: * Filled validator: has been any file uploaded?
- 91: */
- 93: {
- 96: }
- 100: /**
- 101: * FileSize validator: is file size in limit?
- 105: */
- 107: {
- 110: }
- 114: /**
- 115: * MimeType validator: has file specified mime type?
- 119: */
- 121: {
- 128: }
- 132: }
- 135: }
- 136: }
- 138: }
- 140: }