#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    How to validate same file selected while uploading multiple document in client side


    We are using spring form tags and jstl tag below is our code
    <td><c:forEach items="fileDataList" varStatus="vs">
    <strong><form:label
    for="fileDataList"
    path="fileDataList">Upload Document</form:label></strong>
    </c:forEach></td>
    <td colspan="3"><form:input path="fileDataList" id="fileData"
    type="file" cssStyle="width:160px;" onchange="checkSameFile();"/>

    While uploading the multiple file with same name it should give pop up window saying that you selected same file.It should be validate after selecting file in client side only i need help please any one can help.

    Thanks advance
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,041
    Rep Power
    119
    If I was going to validate file uploads, client side... first and for most... I would have server side validation, as well. To save you some time, if I were you... I would look into a "jquery multiple file upload plugin".
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    JavaScript


    Hi All,

    How to validate same file selected while uploading multiple document in client side?
    Explain with one example.


    Thanks Advance.
  6. #4
  7. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,041
    Rep Power
    119
    Originally Posted by prashantpk25
    Hi All,

    How to validate same file selected while uploading multiple document in client side?
    Explain with one example.


    Thanks Advance.
    I gave you information, on what to search for; if you do a online search for "jQuery File Upload Plugin"... you will find several examples on how to do... what your wanting to do.

IMN logo majestic logo threadwatch logo seochat tools logo