I have been working to create a totaly new upload control with custom UI. I have done the UI part but I cannot get the background job which is getting the full pathname of file to upload. Please help me do the real uploading part.
** TO BE HONEST, I FOUND THIS CODE ONLINE **
here is the link - http://jsfiddle.net/c3kyX/
and here is the code below
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#container {
position: relative;
width: 100px;
height: 100px;
border: 1px solid red;
overflow: hidden;
}
#doit, #hid {
position: absolute;
cursor: default;
}
#doit {
top: 0;
left: 0;
border: 1px solid #000;
}
#hid {
opacity: 0.001;
font-size: 300%;
top: -5px;
right: -5px;
}
</style>
<!--[if IE]>
<style type="text/css">
#hid {
display: none;
}
</style>
<![endif]-->
</head>
<body>
<div id="container" title="Choose File">
<div id="doit">
<img src="upload.png" width="100" width="100" />
</div>
<input id="hid" type="file" size=1>
</div>
<script type="text/javascript">
doit.onclick = function(){hid.click();};
</script>
</body>
</html>