Arhell
fad0c5be77
update links
2022-08-07 11:54:16 +03:00
Alexander Makarov
acb7a3b488
Reworked model error escaping to escape on output rather than in validators directly
2017-05-27 02:26:06 +05:00
Carsten Brandt
054defab6c
fixed docs
...
fixes #2421
2016-01-13 17:04:01 +01:00
Carsten Brandt
f33a5c0203
allow array input for CFileValidator in all cases
...
fixes #3351
2014-06-20 14:29:03 +02:00
Max Lapko
951f399a18
Fix. file attribute is set to null only when the validator is safe
2014-02-11 12:16:23 +02:00
marcovtwout
db13ce2d2e
CFileValidator is no longer unsafe by default
...
CFileValidator is no longer unsafe by default to prevent setting
arbitrary values. Instead, when no file is uploaded attribute is set to
null (marcovtwout)
2014-02-03 11:40:23 +01:00
Paul Klimov
48ead00504
CFileValidator fixed to encode file name, while composing error messages.
2013-10-14 16:47:04 +03:00
Paul Klimov
31e7ab1c04
CFileValidator has been fixed.
2013-08-29 11:41:25 +03:00
Rupert-RR
4aaae10174
Added a check for the OK file upload code to avoid checking all the
...
alternatives when the upload was ok.
Return from the method in the file size error branch when the file was
not uploaded.
Added a check in the MIME type validation to only check MIME types if
the CUploadedFile's tempName is not empty.
2013-08-19 14:44:30 +04:00
resurtm
e091388e09
Fixes #2691 . More descriptive exception message.
2013-07-30 19:53:46 +06:00
Carsten Brandt
a3e9fbe0bc
fixed documentation example code of CFileValidator
...
fixes #1458
2013-05-27 03:33:09 +02:00
borales
2f68a75235
Replacing spaces with tabs
...
[ci skip]
2013-03-06 08:48:59 +02:00
borales
07975cad64
Fixing spaces
...
[ci skip]
2013-03-06 01:06:46 +02:00
borales
a7af2c5371
Fixing some typos, PHPDocs
...
[ci skip]
2013-03-06 00:24:35 +02:00
Abdul Malik Ikhsan
6247adaf26
change copyright symbol
2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a
update copyright year
...
from 2011 to 2013
2013-01-15 17:28:17 +07:00
Alexander Kochetov
486723805e
else if => elseif
2012-10-03 10:20:14 +04:00
Alexander Makarov
d865a3bab8
Fixes #1057 Removed SVN ids
2012-09-09 22:23:45 +04:00
Alexander Makarov
3798fa300d
Merge remote-tracking branch 'upstream/master' into CFileValidator-allowEmpty-null
...
Conflicts:
CHANGELOG
2012-08-06 13:08:49 +04:00
Leo R. Lundgren
7a194496a5
Fix a bunch of @param and @return phpdoc errors in various files.
2012-08-03 16:17:58 +02:00
Alexander Makarov
1d33c35ea0
updated CFileValidator to be unsafe
2012-08-03 00:06:21 +04:00
Alexander Makarov
0cbacb1684
changed setting null to unset
2012-08-02 15:12:18 +04:00
Alexander Makarov
d788810f1f
CFileValidator now always sets field value to null when allowEmpty is true and no file was uploaded
2012-08-01 12:45:03 +04:00
resurtm
e8bd65ec5a
CFileValidator could validate uploaded file by its MIME-type, added $mimeTypes and $wrongMimeTypes properties.
2012-07-28 20:16:46 +06:00
resurtm
cc2faf5117
Removed extra case's in the CFileValidator::sizeToBytes() method.
2012-07-08 21:41:54 +06:00
resurtm
205cf9d3c3
Fix #938 , solution #2 .
2012-07-08 16:20:43 +06:00
mdomba (mdwork)
c72268a74a
(Fixes issue #743 ) doc typo
2012-05-23 12:07:00 +02:00
jefftulsa
c4493b731c
adding documentation about placeholders in different validator custom error messages - addressing Issue 2152
2011-12-17 05:17:57 +00:00
qiang.xue
4be0af6917
changed copyright year.
2011-01-01 19:31:13 +00:00
qiang.xue
97b7bfde20
(Fixes issue 1643)
2010-11-02 18:10:56 +00:00
mdomba
72b974560b
Updated PHPDoc @param parameter names
2010-09-23 13:28:52 +00:00
mdomba
93ab63f73d
Fixes issue 1466
2010-08-28 13:22:20 +00:00
alexander.makarow
a68823054d
2010-04-07 11:50:00 +00:00
alexander.makarow
faa64a3296
CFileValidator now works with php.ini's upload_max_filesize strings with K, G, k, m, g
2010-04-06 13:17:40 +00:00
qiang.xue
eb54ba7407
modified copyright info.
2010-01-07 21:02:00 +00:00
qiang.xue
bb5ef901cb
Fixes the bug that using CFileValidator causes an error about accessing a method of a non-object
2009-10-18 19:58:59 +00:00
pestaa.hu
372d23d3c3
Clarify upload mechanism, separate logic into methods, update API; fully tested
2009-09-26 12:54:55 +00:00
pestaa.hu
f1021d48b4
(Fixes issue 429) Native support for multiple file uploads
2009-09-24 20:57:38 +00:00
qiang.xue
59aa3df62b
merge from 1.0
2009-08-06 20:00:34 +00:00
qiang.xue
a2d8907c6a
merge from 1.0
2009-04-05 21:36:33 +00:00
qiang.xue
255f0a6511
merge from 1.0
2009-03-10 18:00:11 +00:00
qiang.xue
80c0b7d7cf
merge from 1.0
2009-02-01 02:14:39 +00:00
qiang.xue
20bf28469f
merge from 1.0.
2008-12-30 23:14:31 +00:00
qiang.xue
f28f466200
2008-11-15 13:37:25 +00:00
qiang.xue
45ebe4ce7e
Finished CFileValidator and CUploadedFile.
2008-11-15 13:36:07 +00:00
qiang.xue
0d046d1902
Added CFileValidator and CUploadedFile.
2008-11-15 02:41:21 +00:00