We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33bf1ac commit e7fb1a1Copy full SHA for e7fb1a1
reference/forms/types/file.rst
@@ -50,7 +50,8 @@ be used to move the ``attachment`` file to a permanent location::
50
if ($form->isSubmitted() && $form->isValid()) {
51
$someNewFilename = ...
52
53
- $form['attachment']->getData()->move($dir, $someNewFilename);
+ $file = $form['attachment']->getData();
54
+ $file->move($dir, $someNewFilename);
55
56
// ...
57
}
0 commit comments