File field validation using LiveValidation script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kadir Razu
    New Member
    • Feb 2011
    • 13

    File field validation using LiveValidation script

    Hi,
    I want to validate my file upload field using liveLalidation 1.3 or (any other live validation script)...

    Such as, I want to check file type (such as .jpg, .gif, .png etc). Also want to check file size for bounding it in a limit (such as maximum 150 KB).

    And also want to set this field as mandatory.

    Is there any option to do this with liveValidation 1.3?
    Then please specify how I can do this?

    Thanks in advance...
    RAZU
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Are you referring to http://livevalidation.com/?

    What do you have so far? Some of the things you require are available on the examples page. The file size test will probably require an actual upload and test on the server-side, so it'd make more sense to leave that for the server-side.

    Comment

    Working...