I have a <input type="file" id="uploadPicture" value="123">
<input type="file" id="uploadPicture" value="123">
When I'm using: alert($("#uploadPicture").val());
alert($("#uploadPicture").val());
It alerts an empty dialog.
@BozidarS: FileAPI is supported quite well nowadays and provides a number of useful options.
var file = document.forms['formName']['inputName'].files[0]; //file.name == "photo.png" //file.type == "image/png" //file.size == 300821
1.4m articles
1.4m replys
5 comments
57.0k users