5

is any way to post the image object to php file using javascript that can be alternative for the regular way of uploading image using (enctype="multipart/form-data") ?

I had successfully post values of input text boxes using ajax, any way to post input file fields ?

Thanks

3 Answers 3

1

There are several techniques for this.

One is to utilize an iFrame for the upload. Check this out: http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html

Sign up to request clarification or add additional context in comments.

Comments

1

Using Iframe for this is one of the best method and keep track of the reponse in Iframe for image uploaded and as soon as you get desired response. Show the image uploaded message.

Comments

0

If you want a ajax style upload checkout: http://www.plupload.com/ or http://valums.com/ajax-upload/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.