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
|
@@ 174-181 (lines=8) @@
|
| 171 |
|
* |
| 172 |
|
* @return mixed|string |
| 173 |
|
*/ |
| 174 |
|
protected function prepareForeach(UploadedFile $file = null) |
| 175 |
|
{ |
| 176 |
|
$this->name = $this->getStoreName($file); |
| 177 |
|
|
| 178 |
|
return tap($this->upload($file), function () { |
| 179 |
|
$this->name = null; |
| 180 |
|
}); |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
/** |
| 184 |
|
* Preview html for file-upload plugin. |