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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With