src/Form/Field/MultipleImage.php 1 location
|
@@ 30-39 (lines=10) @@
|
27 |
|
* |
28 |
|
* @return mixed|string |
29 |
|
*/ |
30 |
|
protected function prepareForeach(UploadedFile $image = null) |
31 |
|
{ |
32 |
|
$this->name = $this->getStoreName($image); |
33 |
|
|
34 |
|
$this->callInterventionMethods($image->getRealPath()); |
35 |
|
|
36 |
|
return tap($this->upload($image), function () { |
37 |
|
$this->name = null; |
38 |
|
}); |
39 |
|
} |
40 |
|
} |
41 |
|
|
src/Form/Field/MultipleFile.php 1 location
|
@@ 179-186 (lines=8) @@
|
176 |
|
* |
177 |
|
* @return mixed|string |
178 |
|
*/ |
179 |
|
protected function prepareForeach(UploadedFile $file = null) |
180 |
|
{ |
181 |
|
$this->name = $this->getStoreName($file); |
182 |
|
|
183 |
|
return tap($this->upload($file), function () { |
184 |
|
$this->name = null; |
185 |
|
}); |
186 |
|
} |
187 |
|
|
188 |
|
/** |
189 |
|
* Preview html for file-upload plugin. |