I've been working on this form for a while trying to get a text field to mimic a file input field (when clicked it triggers the hidden file field to open). I have used a bit of Javascript to change the VALUE of the text field but I can't get it to work. See it here http://jsfiddle.net/ygMLm/.
<script type="text/javascript">
function getFile(){
document.getElementById("uploaded").click();
}
function sub(obj){
var file = obj.value;
var fileName = file.split("\\");
document.getElementById("upclicked").value = fileName[fileName.length-1];
document.adupload.submit();
event.preventDefault();
}
</script>
<p><input type="text" id="upclicked" onclick="getFile()" placeholder="Select a File (960 Width JPEG)"></p>
<div style='height: 0px;width: 0px; overflow:hidden;'>
<input type="file" name="date" value="" id="uploaded" onclick="getFile()">
EDIT:
$('#uploaded').change(function(){
var file = obj.value;
var fileName = file.split("\\");
$('input[name=faux]').val(fileName[fileName.length-1]);
});