File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,21 @@ logic to a separate service::
255
255
}
256
256
}
257
257
258
+ .. tip ::
259
+
260
+ In addition to the generic :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ FileException `
261
+ class there are other exception classes to handle failed file uploads:
262
+ :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ CannotWriteFileException `,
263
+ :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ ExtensionFileException `,
264
+ :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ FormSizeFileException `,
265
+ :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ IniSizeFileException `,
266
+ :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ NoFileException `,
267
+ :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ NoTmpDirFileException `,
268
+ and :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ Exception\\ PartialFileException `.
269
+
270
+ .. versionadded :: 4.1
271
+ The detailed exception classes were introduced in Symfony 4.1.
272
+
258
273
Then, define a service for this class:
259
274
260
275
.. configuration-block ::
You can’t perform that action at this time.
0 commit comments