问题描述:

How can i check whether the file is selected in file upload or not

网友答案:

To check whether user upload a file or not you can do

var file = $('#FileUploadId').val();
if (file == "") {
alert("Please select a file");
}
相关阅读:
Top