I am making an upload form. Here is the jquery function:
$("#dropbrows").click(function(){
$("#browse").trigger("click");
$("#browse").change(function (){
var test = $("#browse").val();
$("#userpic").append("<a>'"+test+"'</a><img src='"+test+"' width='30' height='30' />");
});
});
and the HTML
<ul id="userpic" class="userpic">
<!-- The file uploads will be shown here -->
</ul>
As you see what am I trying to do is to make a small thumbnail upon picture select, the pic stored in 'C:\fakepath\1518290_611410375580021_371786666_n.jpg' the browser shows the full path of the pic as 'C:\fakepath\1518290_611410375580021_371786666_n.jpg' but instead of the thumbnail it shows a question mark. cause it is not able to find the physical pic file in the path, I guess.
The question is, how to let the thumbnail show the pic? What am I doing wrong here?
Thanks a lot.