Closed JanMikes closed 6 years ago
As workaround i use in process method this:
$this->fixNonUploadedImage($values->test1, "test1");
$this->fixNonUploadedImage($values->test2, "test2");
private function fixNonUploadedImage(& $value, $namespace)
{
if ($value instanceof FileUpload) {
$value = $this->imageStorage->saveUpload($value, $namespace);
}
}
Hello, i need to use multiple uploadcontrols in one form (not possible to use multiupload, i need to differ images), but only last one is processed.
Following code:
See result of xdebug breakpoint in process function (without modifing values), tried same image 3 times. I tested even with 2 or more images, same result, always only last one is uploaded with imagestorage.
Tried both stable and @dev version, same result.