I wish I could save a file sent in a form with a default name and not the original file name, for example upload an image "image.jpg" and save it as "img.jpg".
Below left the code I'm using:
// in the controller
if ($form->isValid()) {
$adapter = new Http();
$field = $this->params()->fromFiles('advertencia');
$adapter->setDestination(dirname(__DIR__));
if ($adapter->receive($field['name'])) {
}
}
If someone could help me from now thank you very much!

