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
|
@@ 184-191 (lines=8) @@
|
| 181 |
|
* |
| 182 |
|
* @return mixed|string |
| 183 |
|
*/ |
| 184 |
|
protected function prepareForeach(UploadedFile $file = null) |
| 185 |
|
{ |
| 186 |
|
$this->name = $this->getStoreName($file); |
| 187 |
|
|
| 188 |
|
return tap($this->upload($file), function () { |
| 189 |
|
$this->name = null; |
| 190 |
|
}); |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
/** |
| 194 |
|
* Preview html for file-upload plugin. |