views:

354

answers:

2

i want to use ajax to upload image. in this module 1. on clicking brows image will be upload and display over file field. 2. after ading title and description and clicking on button that image will be display bellow and upper image field will be blank

I have tried meny way but not working.

Plz anyone help me asap

+1  A: 

You can't upload files through AJAX. You need to work with IFRAMEs or a Flash-Based uploader.

Pekka
I would prefer the use of iframe, since we're not built to do flash.
thephpdeveloper
… which are Ajax. Ajax is not XHR. XHR is just the most common way to implement Ajax.
David Dorward
Firefox >= 3 and Chrome >= 2 support XHR uploads.
Ionuț G. Stan
A: 

Try to use JQuery plugin for uploading an image.

May be http://www.uploadify.com/

This will give an idea how to do it.

Bindas