CodeIgniter Forums

Full Version: AJAX Image Upload - jQuery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
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!

El Forum

[eluser]woopsicle[/eluser]
use jquery-form - it makes it pretty simple to do that kind of thing.

http://www.malsup.com/jquery/form/#code-samples

i can give more code samples if you need

El Forum

[eluser]Crimp[/eluser]
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.

El Forum

[eluser]abmcr[/eluser]
[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

El Forum

[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

El Forum

[eluser]abmcr[/eluser]
I have made a little bit arrangement. See at WIKI for the use of jquery uploader with the CI

El Forum

[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.

El Forum

[eluser]Unknown[/eluser]
Hey there,

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

http://www.webmotionuk.co.uk/jquery-imag...p-for-php/

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

Regards

WebMotionUK

El Forum

[eluser]Unknown[/eluser]
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.

El Forum

[eluser]sanket[/eluser]
@webmotionuk : do you have same script for CI yet?