I need to implement Gmail style file upload in asp.net c#
where user will click on button and file dialog will open.
user selects a file,then process that file in code.
i dont want user to see file upload control he ll just click one button.
i have already used few solutions
example
function OpenFileUpload() {
var myFrame = document.getElementById('frameUpload');
$(myFrame).focus();
$(myFrame).contents().find("#FileUpload1").click();
var value = $(myFrame).contents().find("#FileUpload1").val();
if (value != '') {
$(myFrame).contents().find("#btnSubmit").click();
}
}
need better solutions.