Uploading Images?

Discussion in 'jQuery' started by BrettOwnz, Oct 15, 2010.

  1. #1
    Hey guys,

    I'm not exactly NEW to jQuery, but up until this point I have never dealt with a situation where I would need to upload images with jQuery in an application. Right now, I'm developing an application that will need to do so, and even after trying various different methods on the web I can't seem to get things to work.

    I have even tried jQuery plugins that wouldn't work because my form and its inputs are generated dynamically. Is there any way to do this properly with a dynamically generated form? I've been wasting hours on this problem... I'm hoping theres some jQuery genius out there to help me ;)

    Thanks guys, if you need code let me know.
     
    BrettOwnz, Oct 15, 2010 IP
  2. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont know whether pure jquery can do it r not.but u can try ajax uploadify
     
    learnerabn, Oct 18, 2010 IP
  3. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not sure what the hype is about Uploadify, tried it. Didnt like it... Very Clunky, not even sure how to integrate with a form with other data, requires a crazy back end approach.. Was so complicated, very unpractical. Definitely pass on this if you are an analytical thinker.
     
    scriptinstaller, Nov 5, 2010 IP
  4. look4guna

    look4guna Active Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    you can ajax call to a php file. pass the path as parameter to that php file, then use something like move_upload_file function in php for uploading.
     
    look4guna, Dec 13, 2010 IP
  5. animebuzz.tv

    animebuzz.tv Peon

    Messages:
    317
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    pure jquery wont give you anything you want as this is not possible. you need a server side help using PHP, ASP and other language that can handle uploading.
    maybe you need to pass the data using ajax and php for example will handle the uploading internally.
     
    animebuzz.tv, Dec 15, 2010 IP
  6. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #6
    olddocks, Dec 17, 2010 IP
  7. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #7
    You only have two options:

    1) As said before, use hidden iframes and a server side language.
    2) Wait for Ajax 2 (coming really soon).
     
    ThePHPMaster, Dec 22, 2010 IP