I have a web application which allow user to send report with up to 5 jpg images. Somehow I manage to let user sent report with up to 5 jpg images. But something weird happen after submitting the report with some jpg images, the regular expression validator
of fileupload (the fileupload which the user previously inserted with jpg image) prompt the error message of "Only jpg files are allowed", I not sure what went wrong in my code. Do help me take a look on my code below. Thanks!
Aspx Page
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language = "Javascript">
function tbLimit() {
var tbObj = event.srcElement;
if (tbObj.value.length == tbObj.maxLength * 1) return false;
}
function tbCount(visCnt) {
var tbObj = event.srcElement;
if (tbObj.value.length > tbObj.maxLength * 1) tbObj.value = tbObj.value.substring(0, tbObj. ...
Go to the complete details ...