• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AJAX Image Upload - jQuery

Can please someone give me a few pointers on how can somebody upload an image with ajax? If it uses jQuery it's better but I think I can replicate it in that library.

Thanks guys!

use jquery-form - it makes it pretty simple to do that kind of thing.


i can give more code samples if you need

They basically can't. AJAX, by one definition, refers to the XMLHttpRequest object. That's a different pipe on the Internet tubes. The workaround is to use an iframe.

There's the standard jQuery uploader http://www.pixeline.be/experiments/jqUploader/test.php or http://www.air4web.com/files/upload/, for example.

[quote author="Crimp" date="1186084542"]
There's the standard jQuery uploader http://www.pixeline.be/experiments/jqUploader/test.php[/quote]
I try to use this script but i get an $_FILES array null.....any one has used it with success? Thank you

[eluser]Phil Sturgeon[/eluser]
Make sure that mod_security is off. Use this in your htaccess:

Quote:SecFilterEngine Off
SecFilterScanPOST Off

Ya'll should take a look at jUpload. Its some smelly beefy Java but after you spend a few days wrestling with it, its good fun!

/hug MrEnirO

I have made a little bit arrangement. See at WIKI for the use of jquery uploader with the CI

[eluser]ahmad furqon[/eluser]
would you please, give me more brief explanation in your WIKI?

where should i put jqUploader.swf and .fla
in my case, form aint trigerred after i finish browse file to be uploaded, no "upload" button showed up.
i've tried to change the path in jqUploader to point out those files, but seems still failed.

thank you.

Hey there,

We have just created a jquery'd image upload and crop script with a php backend, take a look:


We used the one-click upload for jquery and it seems to be working great! Full source code and demo provided.



You can use my ajax upload plugin for jquery and prototype, it allows you to upload multiple files and use any element as upload button.

@webmotionuk : do you have same script for CI yet?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.