Hey mates,
I have a form with two input type="file" one can only have .pdf other can only have images.
Is there any way to archive this with upload class?
Cheers!
You will have to create a validation callback, here's an example (using a closure): http://docs.fuelphp.com/classes/upload/usage.html#/method_register.
It gets passed the entire file array, so you can do custom validations based on the field name. The callback should return one of the error code constants.