|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
patelprajay Smarty n00b
Joined: 04 Jul 2017 Posts: 1
|
Posted: Tue Jul 04, 2017 10:21 am Post subject: File Validation is not ignored. |
|
|
Hello,
Recently I have come to an issue where I was planning to validate the file. Everything was working fine. But while I have to ignore the file validation while there is not file included. Than validation must be ignored. I tried to change the empty flag as true as well but that did not work as well.
So I have did research your code. and find that there is one condition is missing.
if you see the line number 226 in the SmartyValidate.class.php. There is condition where your are checking the form variables and the files variables are passed or not.
So if i just submit my form without the images included still it will go for validation.
I would be really happy if you can help me to provide the solution for it. One more thing I am using the AJAX to submit the form. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jul 04, 2017 11:36 am Post subject: Re: File Validation is not ignored. |
|
|
patelprajay wrote: | if you see the line number 226 in the SmartyValidate.class.php |
There's no such file in Smarty package.
The only files that have ".class." in their name are Smarty.class.php and SmartyBC.class.php |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|