| @@ -18,13 +18,14 @@ | ||
| 18 | 18 | use Concerns\AllowMultiple; |
| 19 | 19 | use Concerns\HasEmailTag; |
| 20 | 20 | use Concerns\HasHelpText; |
| 21 | 21 | use Concerns\HasLabel; |
| 22 | - use Concerns\AllowMultiple; | |
| 23 | 22 | use Concerns\HasDescription; |
| 24 | 23 | |
| 25 | 24 | const TYPE = 'file'; |
| 26 | 25 | |
| 26 | + protected $allowedMimeTypes = []; | |
| 27 | + | |
| 27 | 28 | /** |
| 28 | 29 | * Set the maximum file size. |
| 29 | 30 | * |
| 30 | 31 | * @deprecated use maxUploadSize() instead |
| @@ -112,8 +113,9 @@ | ||
| 112 | 113 | } else { |
| 113 | 114 | $this->rules((new FileRule())->allowedMimeTypes($allowedMimeTypes)); |
| 114 | 115 | } |
| 115 | 116 | |
| 117 | + $this->allowedMimeTypes = $allowedMimeTypes; | |
| 116 | 118 | |
| 117 | 119 | return $this; |
| 118 | 120 | } |
| 119 | 121 | |