Pure ASP Upload 3 Support Product Page

Microsoft VBScript compilation error '800a0401' on ASP Upload product

Reported 26 Dec 2012 22:32:12
1
has this problem
26 Dec 2012 22:32:12 paul alvarez posted:
Just posted my first page using this extension.

The code that was written by this extension has an error that prevents the page from loading. The entire error is:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/add_product.asp, line 23

Dim uploadFile Upload
---------------^

URL IS:
avantiartstudio.com/add_product.asp


SOURCE CODE:

<%
'*** Pure ASP File Upload 3.1.0
' Process form form1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "../ScriptLibrary"
pau.TimeOut = 120
pau.ConflictHandling = "over"
pau.StoreType = "file"
pau.ProgressTemplate = "win_look.htm"
pau.ProgressWidth = 400
pau.ProgressHeight = 200
pau.UploadFolder = ""
pau.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
pau.MinWidth = 10
pau.MinHeight = 10
pau.MaxWidth = 600
pau.MaxHeight = 600
Dim uploadFile Upload
set uploadFile Upload = pau.AddField("File Upload"
uploadFile Upload.UploadFolder = """../images/products"""
uploadFile Upload.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
uploadFile Upload.MaxFileSize = 1000
uploadFile Upload.MinWidth = 10
uploadFile Upload.MinHeight = 10
uploadFile Upload.MaxWidth = 600
uploadFile Upload.MaxHeight = 600
Dim uploadthumb
set uploadthumb = pau.AddField("thumb"
uploadthumb.UploadFolder = """../images/products/thumbs"""
uploadthumb.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
uploadthumb.MaxFileSize = 1000
uploadthumb.MinWidth = 10
uploadthumb.MinHeight = 10
uploadthumb.MaxWidth = 600
uploadthumb.MaxHeight = 600
pau.ProcessUpload
pau.SaveAll
if pau.Done then Response.Redirect "landing.asp"
%>

Replies

Replied 08 Feb 2013 09:26:51
08 Feb 2013 09:26:51 Miroslav Zografski replied:
Hello Paul,

Please, excuse me for the late response.

The problem you are experiencing is due to the fact that your field name has a whitespace "File Upload". Please, remove the whitespace to fix it.

Regards.

Reply to this topic