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
|
@@ 141-148 (lines=8) @@
|
| 138 |
|
* |
| 139 |
|
* @return mixed|string |
| 140 |
|
*/ |
| 141 |
|
protected function prepareForeach(UploadedFile $file = null) |
| 142 |
|
{ |
| 143 |
|
$this->name = $this->getStoreName($file); |
| 144 |
|
|
| 145 |
|
return tap($this->upload($file), function () { |
| 146 |
|
$this->name = null; |
| 147 |
|
}); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
/** |
| 151 |
|
* Preview html for file-upload plugin. |