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 |
|
|