Pass a file with ajax

Discussion in 'Programming' started by anniejolly, Mar 16, 2010.

  1. #1
    I would like to calculate the file size using ajax technology. How to pass the entire file as an argument to the ajax call in cold fusion 8?
     
    anniejolly, Mar 16, 2010 IP
  2. new2seoo

    new2seoo Peon

    Messages:
    143
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To calculate file size you will have to user <cffile tag and upload file to temporary folder, and then calculate its size. You can this with jquery and its plugin ajax File Upload [http://plugins.jquery.com/project/ajaxFileUpload.

    Let me know if you need any more information.
     
    Last edited: Apr 2, 2010
    new2seoo, Apr 2, 2010 IP
  3. anniejolly

    anniejolly Greenhorn

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Thanks for ur suggestion.
     
    anniejolly, Apr 6, 2010 IP