⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Validate 2 upload fields (different extensions, same CRUD)



gbarrerasaez
  • profile picture
  • Member

Posted 22 July 2013 - 14:09 PM

Hi guys, i have a situation, i need to validate 2 upload fields in the same CRUD's intance, but once is for images (jpg) and another to pdf's files.
 
anyone know how can i do that?
 
thanks!
 

 


davidoster
  • profile picture
  • Member

Posted 23 July 2013 - 02:16 AM

What's the validation? The type of the file?

Using the set_rules function you can define specific rules for each field.