| @@ -8,9 +8,8 @@ | ||
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * A file upload field. |
| 11 | 11 | * |
| 12 | - * @since 4.3.0 Added maxUploadSize property. | |
| 13 | 12 | * @since 2.32.0 Updated to use the new Validation File Rule; added description |
| 14 | 13 | * @since 2.12.0 |
| 15 | 14 | * @since 2.23.1 Moved default rule values inline since inherited constructor is final. |
| 16 | 15 | */ |
| @@ -24,9 +23,8 @@ | ||
| 24 | 23 | |
| 25 | 24 | const TYPE = 'file'; |
| 26 | 25 | |
| 27 | 26 | protected $allowedMimeTypes = []; |
| 28 | - protected $maxUploadSize = null; | |
| 29 | 27 | |
| 30 | 28 | /** |
| 31 | 29 | * Set the maximum file size. |
| 32 | 30 | * |
| @@ -65,9 +63,8 @@ | ||
| 65 | 63 | |
| 66 | 64 | /** |
| 67 | 65 | * Set the maximum file upload size. |
| 68 | 66 | * |
| 69 | - * @since 4.3.0 Set the field's maxUploadSize property. | |
| 70 | 67 | * @since 2.32.0 |
| 71 | 68 | */ |
| 72 | 69 | public function maxUploadSize(int $maxUploadSize): File |
| 73 | 70 | { |
| @@ -77,9 +74,8 @@ | ||
| 77 | 74 | $rule->maxSize($maxUploadSize); |
| 78 | 75 | } |
| 79 | 76 | |
| 80 | 77 | $this->rules((new FileRule())->maxSize($maxUploadSize)); |
| 81 | - $this->maxUploadSize = $maxUploadSize; | |
| 82 | 78 | |
| 83 | 79 | return $this; |
| 84 | 80 | } |
| 85 | 81 | |