DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Other extensions  
DwZone Forum Index -> Other extensions

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 11 to 20 of 483 (Total: 237) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: ASP Xml Recordset  
View this persons public profile  Branko Badurina   11:30 24 Sep 2019  
   Error when updating ASP Data Formatter  
View this persons public profile  CorVermeulen   2:10 7 Nov 2017  
   Re: Error when updating ASP Data Formatter  
View this persons public profile  Gianluigi   12:05 7 Nov 2017  
   Re: Error when updating ASP Data Formatter  
View this persons public profile  CorVermeulen   0:55 8 Nov 2017  
   Re: Error when updating ASP Data Formatter  
View this persons public profile  CorVermeulen   4:54 9 May 2018  
   Re: Error when updating ASP Data Formatter  
View this persons public profile  Gianluigi   12:43 10 May 2018  
   Extension Manager  
View this persons public profile  Martin   1:17 19 Jan 2017  
   Re: Extension Manager  
View this persons public profile  Gianluigi   10:32 19 Jan 2017  
    Ajax Upload no upload after wrong file type  
View this persons public profile  Ken   22:53 18 Jan 2017  
 
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"-->

 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Ajax Upload no upload after wrong file type  
View this persons public profile  Gianluigi   13:03 19 Jan 2017  
Last Visit: Thursday 28 Mar, 2024 11:15 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: