I have an ajax insert upload form. I have it limited to pdf, and jpg file types. If I attempt to upload an incorrect file type (for example a word document) I get the error box telling me it is the wrong file type, when I lose the error box it will not upload any files, even ones that are of the correct type. It just keeps giving the same error until I refresh the page. simple asp page with nothing else.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!--#include virtual="/Connections/d_r_o_plet.asp" --> <% '********************************* '* * '* Ajax INSERT RECORD AND UPLOAD* '* http://www.DwZone-it.com * '* Version 1.2.16 * '* * '********************************* TotalFileSize = "" editRedirectUrl = "/index.asp" RG_Connection = MM_d_r_o_plet_STRING RG_editTable = "dbo.files" RG_Files = "/secure/uploads/applications/;1;;pdf,jpg;;0;image;3;;;;0;;;;;1;;1;image@_@_@1@_@_@0@_@_@0;;;80;0;;;80;0;_small;0;1;0;;;80;0;_small;1@_@_@/@_@_@GET@_@[email protected]" RG_formName = "form1" UploadType = "Insert" UploadStatus = "" AjaxPar = "dwzProgressDiv@_@@@_@true@_@@@_@1000@_@@@_@The upload is completed@_@@@_@#000000@_@@@_@25@_@@@_@5400@_@@@_@0@_@@@_@@_@@@_@@_@@@_@" RG_fieldsStr = "filename|value" RG_columnsStr = "source|',none,''" UploadID = session.SessionID ProgressRefresh = "@@ProgressRefresh@@" session("dwzTotalFileSize") = TotalFileSize session("dwzEditRedirectUrl") = editRedirectUrl session("dwzRG_Files") = RG_Files session("dwzRG_formName") = RG_formName session("dwzUploadType") = UploadType session("dwzUploadStatus") = UploadStatus session("dwzUploadID") = UploadID session("RG_Connection") = RG_Connection session("RG_editTable") = RG_editTable session("RG_fieldsStr") = RG_fieldsStr session("RG_columnsStr") = RG_columnsStr session("AjaxPar") = AjaxPar dwzFormAction = "/dwzAjaxUpload/AjaxProcessor.asp?UploadID=" & UploadID '********************************** '* Ajax INSERT RECORD AND UPLOAD * '* END CODE * '********************************** %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title><% '***************** '* Ajax UPLOAD * '***************** response.write("<scr" & "ipt type='text/javascript'>window.jQuery || document.write('<script src=\'/dwzAjaxUpload/jquery.js\'><\/script>')</scr" & "ipt>") response.write("<scr" & "ipt language='javascript' src='/dwzAjaxUpload/dwzAjaxUpload.js' ></scr" & "ipt>") response.write("<scr" & "ipt language='javascript' src='/dwzAjaxUpload/cropper/lib/dwzFunctions.js' ></scr" & "ipt>") response.write("<scr" & "ipt language='javascript' >var dwzStartPath = '/'</scr" & "ipt>") '***************** '* Ajax UPLOAD * '***************** %> </head>
<body> <form onsubmit="return dwzAjaxUploadStart()" target="dwzAjaxUploadFrame" id="form1" name="form1" enctype="multipart/form-data" method="post" action="<%=dwzFormAction%>"> <input type="file" name="image" id="image" /> <input type="submit" name="button" id="button" value="Submit" /> <input name="filename" type="hidden" id="filename" value="kenny" /><% '***************** '* Ajax UPLOAD * '* START CODE * '***************** response.write(GetAjaxUploadFrame()) response.Write(CreateJsInfo()) '***************** '* Ajax UPLOAD * '* END CODE * '***************** %> </form> </body> </html><!--#include virtual="/dwzAjaxUpload/ClientFunctions.asp"-->
|
|
|