PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 3.0.0
GiveWP – Donation Plugin and Fundraising Platform v3.0.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
← All changes | src/Framework/FieldsAPI/File.php +3 -1 2.33.53.0.0 View file →
@@ -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