I have an image like this
<input type="file" name="pic_file" id="photo_file">
<img id="image_holder" src="" />
The <img>
source is set by the user, though a file input as seen in above code. I want the img to be linked with an <a>
but since the I have not saved the image yet I cant put a relative link to the full size image. How could I use the cached version of the image that is being displyed and use that as a link that would be something like this
<a href="cached_img with id=image_holder"><img id="image_holder" src="" /></a>
The user woudl have uploaded an image at this point so the src woudl not be empty
Thanks