PrajapatiRaj / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Other validator error ({"file":{"types":"jpg, gif, png"}}) #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make new profile field (for example "UserPic") type VARCHAR with widget 
"File field"
2. Fill "Other validator" field with sample value: {"file":{"types":"jpg, gif, 
png"}}
3. Save field
4. Try to edit profile (/user/profile/edit)
5. Error returned: PHP Error include( 
{&quot;file&quot;:{&quot;types&quot;:&quot;jpg&quot;}}.php) [<a 
href='function.include'>function.include</a>]: failed to open stream: No such 
file or directory

What is the expected output? What do you see instead?
It should show profile edit form. Probably it can rise an error during POST, 
because it should be some additional logic provided, i think?

What version of the product are you using? On what operating system?
Latest version (0.3) Linux

Please provide any additional information below.
It would be nice to have some samples about using other validators.

Original issue reported on code.google.com by vlad.hol...@gmail.com on 30 Aug 2011 at 12:55