@@ -213,18 +213,17 @@ maxSizeMessage
213213The message displayed if the file is larger than the `maxSize `_ option.
214214
215215You can use the following parameters in this message:
216+
216217+------------------+------------------------------------------------+
217218| Parameter | Description |
218219+==================+================================================+
219- | ``{{ size }} `` | File size of the file |
220+ | ``{{ size }} `` | File size of the given file |
220221+------------------+------------------------------------------------+
221222| ``{{ limit }} `` | Maximum file size allowed |
222223+------------------+------------------------------------------------+
223224| ``{{ suffix }} `` | Suffix for the used file size unit (see above) |
224225+------------------+------------------------------------------------+
225- | ``{{ file }} `` | Full file path |
226- +------------------+------------------------------------------------+
227- | ``{{ name }} `` | Base file name |
226+ | ``{{ file }} `` | Absolute file path |
228227+------------------+------------------------------------------------+
229228
230229mimeTypesMessage
@@ -236,16 +235,15 @@ The message displayed if the mime type of the file is not a valid mime type
236235per the `mimeTypes `_ option.
237236
238237You can use the following parameters in this message:
238+
239239+-----------------+----------------------------------------+
240240| Parameter | Description |
241241+=================+========================================+
242- | ``{{ type }} `` | The (disallowed) mime type of the file |
243- +-----------------+----------------------------------------+
244- | ``{{ types }} `` | The list of allowed mime types |
242+ | ``{{ type }} `` | The MIME type of the given file |
245243+-----------------+----------------------------------------+
246- | ``{{ file }} `` | Full file path |
244+ | ``{{ types }} `` | The list of allowed MIME types |
247245+-----------------+----------------------------------------+
248- | ``{{ name }} `` | Base file name |
246+ | ``{{ file }} `` | Absolute file path |
249247+-----------------+----------------------------------------+
250248
251249disallowEmptyMessage
@@ -257,13 +255,12 @@ This constraint checks if the uploaded file is empty (i.e. 0 bytes). If it is,
257255this message is displayed.
258256
259257You can use the following parameters in this message:
260- +----------------+----------------+
261- | Parameter | Description |
262- +================+================+
263- | ``{{ file }} `` | Full file path |
264- +----------------+----------------+
265- | ``{{ name }} `` | Base file name |
266- +----------------+----------------+
258+
259+ +----------------+--------------------+
260+ | Parameter | Description |
261+ +================+====================+
262+ | ``{{ file }} `` | Absolute file path |
263+ +----------------+--------------------+
267264
268265notFoundMessage
269266~~~~~~~~~~~~~~~
@@ -275,11 +272,12 @@ is only likely if the underlying value is a string path, as a ``File`` object
275272cannot be constructed with an invalid file path.
276273
277274You can use the following parameters in this message:
278- +----------------+----------------+
279- | Parameter | Description |
280- +================+================+
281- | ``{{ file }} `` | Full file path |
282- +----------------+----------------+
275+
276+ +----------------+--------------------+
277+ | Parameter | Description |
278+ +================+====================+
279+ | ``{{ file }} `` | Absolute file path |
280+ +----------------+--------------------+
283281
284282notReadableMessage
285283~~~~~~~~~~~~~~~~~~
@@ -290,11 +288,12 @@ The message displayed if the file exists, but the PHP ``is_readable()`` function
290288fails when passed the path to the file.
291289
292290You can use the following parameters in this message:
293- +----------------+----------------+
294- | Parameter | Description |
295- +================+================+
296- | ``{{ file }} `` | Full file path |
297- +----------------+----------------+
291+
292+ +----------------+--------------------+
293+ | Parameter | Description |
294+ +================+====================+
295+ | ``{{ file }} `` | Absolute file path |
296+ +----------------+--------------------+
298297
299298uploadIniSizeErrorMessage
300299~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -305,6 +304,7 @@ The message that is displayed if the uploaded file is larger than the ``upload_m
305304``php.ini `` setting.
306305
307306You can use the following parameters in this message:
307+
308308+------------------+------------------------------------------------+
309309| Parameter | Description |
310310+==================+================================================+
@@ -325,6 +325,7 @@ This message has no parameters.
325325
326326uploadPartialErrorMessage
327327~~~~~~~~~~~~~~~~~~~~~~~~~
328+
328329**type **: ``string `` **default **: ``The file was only partially uploaded. ``
329330
330331The message that is displayed if the uploaded file is only partially uploaded.
@@ -333,6 +334,7 @@ This message has no parameters.
333334
334335uploadNoFileErrorMessage
335336~~~~~~~~~~~~~~~~~~~~~~~~
337+
336338**type **: ``string `` **default **: ``No file was uploaded. ``
337339
338340The message that is displayed if no file was uploaded.
@@ -341,6 +343,7 @@ This message has no parameters.
341343
342344uploadNoTmpDirErrorMessage
343345~~~~~~~~~~~~~~~~~~~~~~~~~~
346+
344347**type **: ``string `` **default **: ``No temporary folder was configured in php.ini. ``
345348
346349The message that is displayed if the php.ini setting ``upload_tmp_dir `` is
@@ -350,6 +353,7 @@ This message has no parameters.
350353
351354uploadCantWriteErrorMessage
352355~~~~~~~~~~~~~~~~~~~~~~~~~~~
356+
353357**type **: ``string `` **default **: ``Cannot write temporary file to disk. ``
354358
355359The message that is displayed if the uploaded file can't be stored in the
@@ -359,6 +363,7 @@ This message has no parameters.
359363
360364uploadExtensionErrorMessage
361365~~~~~~~~~~~~~~~~~~~~~~~~~~~
366+
362367**type **: ``string `` **default **: ``A PHP extension caused the upload to fail. ``
363368
364369The message that is displayed if a PHP extension caused the file upload to
0 commit comments