DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Asp Upload and Resize  
DwZone Forum Index -> Asp Upload and Resize

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 51 to 60 of 860 (Total: 366) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: file not being renamed  
View this persons public profile  John Stanfield   1:57 21 Aug 2016  
   Re: file not being renamed  
View this persons public profile  John Stanfield   1:58 21 Aug 2016  
   Re: file not being renamed  
View this persons public profile  Gianluigi   2:34 21 Aug 2016  
   Re: file not being renamed  
View this persons public profile  John Stanfield   3:16 21 Aug 2016  
   SQL type not recognised  
View this persons public profile  Kevin   7:28 1 Jan 2016  
   Re: SQL type not recognised  
View this persons public profile  Gianluigi   7:40 1 Jan 2016  
    Re: SQL type not recognised  
View this persons public profile  Kevin   10:22 1 Jan 2016  
 
Hi Gainluigi,

OK I understand about using the two extensions at the same time. no problem. I did as you said and uninstalled both, then reinstalled the "ASP Upload & Resize" extension. Please note that this is as per my original DW configuration I only installed the "ASP Upload" because I am having problems with the "ASP Upload & Resize".

So, I have tried again on a very simple test page, but the problem with the" SQL Type not recognised" error still occurs. If I "OK" the two repeated error messages and continue, DW places the generated code in the file, but something must missing as it does not function (not surprisingly given there is some error).
This is the extra code the extension generates, perhaps you can make sense of what is wrong.
The test page is www.midwalesstages.co.uk/test_upload.asp


<%
'****************************
'* INSERT RECORD UPLOAD
'* http://www.DwZone-it.com
'* Version 2.5.23
'****************************
dim dwzUpload
set dwzUpload = new dwzClsUpload
dwzUpload.Init
dwzUpload.Timeout = "5400"
dwzUpload.Charset = "utf-8"
dwzUpload.Progresspage = "standardd"
dwzUpload.TotalFileSize = ""
dwzUpload.TempFolder = "/temp"
dwzUpload.RedirectUrl = "/test_upload_list.asp"
dwzUpload.CnString = MM_conn_mws_STRING
dwzUpload.DbType = "None"
dwzUpload.Table = "tbl_downloads"
dwzUpload.ObjFiles = "/downloads;1;;pdf;;1;[file url]#5,1,255;1;[file size]&S#5,1,-1;;;0;;;;#0,0,0;1;#0,0,0;1;#0,0,0;#0,0,0;file@_@_@1@_@_@0@_@_@0;;;80;0;;;80;0;_m;0;1;0;;;80;0;_s;1@_@_@/@_@_@POST@_@[email protected]"
dwzUpload.FormName = "form1"
dwzUpload.UploadType = "Insert"
dwzUpload.ValueToRedirect = "download name"
dwzUpload.StrFields = "download name|value"
dwzUpload.StrColumns = "[file name]|TextVoid;202;1;255"
dwzUpload.Execute
'********************
'* Custom Functions
'********************
function dwzGetFolderName(str): dwzGetFolderName = Ris : end function
function dwzGetFileName(str): dwzGetFileName = Ris : end function
'****************************
'* INSERT RECORD UPLOAD
'****************************
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
'****************************
'* UPLOAD HEAD CODE
'****************************
dwzUpload.GetHeadCode
'****************************
'* UPLOAD HEAD CODE
'****************************
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include virtual="/css_data.inc" -->
<title>Test upload function</title>
</head>

Regards

Kevin
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: SQL type not recognised  
View this persons public profile  Gianluigi   10:27 1 Jan 2016  
   Re: SQL type not recognised  
View this persons public profile  Kevin   12:05 1 Jan 2016  
   Re: SQL type not recognised  
View this persons public profile  Gianluigi   14:03 1 Jan 2016  
Last Visit: Friday 1 Nov, 2024 3:31 am 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: