I created a front-end form and have several image upload fields. I was able to create a post and have the images attached. But what I would like to do is have the user see a preview of the image they are about to upload before submitting the Post.
I’ve read quite a few alternatives, Uploadify, Valums.com http://valums.com/ajax-upload, SWFupload and a few others I can’t remember. But the problem with all of them is that once i implement them in the form, the images are no longer attached to the post, but only uploaded to the server.
Any suggestion or code sample I can use to do this? I have scoured the net for an answer – perhaps it’s just not possible in WP to preview an image and also attach it to a post in one form?
Just add this scripts in header
Add for Internet explorer:
Add style to the header.
Note this should be added in header of that page or ur theme
and this will be upload bar
with preview
u can also cancel the preview with this