You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/FileToArrayTransformer.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,11 @@ public function reverseTransform($array)
64
64
}
65
65
66
66
if (!array_key_exists('file', $array)) {
67
-
thrownewTransformationFailedException('The key "file" is missing');
67
+
thrownewTransformationFailedException('The key "file" is missing.');
68
68
}
69
69
70
70
if (!empty($array['file']) && !$array['file'] instanceof File) {
71
-
thrownewTransformationFailedException('The key "file" should be empty or instance of File');
71
+
thrownewTransformationFailedException('The key "file" should be empty or instance of File (Have you set the "enctype" attribute of the form tag to "multipart/form-data"?).');
0 commit comments