Forums
This topic is locked
PU3 and SIP2 error
Posted 07 Nov 2007 18:49:41
1
has voted
07 Nov 2007 18:49:41 John Von Runnen posted:
I get the following error when I try to upload a file:Microsoft VBScript compilation error '800a03ea'
Syntax error
C:\..../ScriptLibrary/incSIP2Class.asp, line 2797
here is the code to my file:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../ScriptLibrary/incSIP2Class.asp" -->
<!--#include file="../ScriptLibrary/incPU3Class.asp" -->
<!--#include file="../ScriptLibrary/incPU3Utils.asp" -->
<%
'*** Pure ASP File Upload 3.0.9
' 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.ConflictHandling = "over"
pau.StoreType = "file"
pau.ProgressTemplate = "circle.htm"
pau.ProgressWidth = 500
pau.ProgressHeight = 150
pau.UploadFolder = """gallery"""
pau.MaxFileSize = 2048
pau.ProcessUpload
pau.SaveAll
%>
<%
' Smart Image Processor 2.0.3
Dim sip1
Set sip1 = New ImageProcessor
sip1.ScriptFolder = "../ScriptLibrary"
sip1.Component = "Auto"
sip1.Source = "upload"
sip1.UploadFields = ""
sip1.GetFiles
While sip1.HasFiles
sip1.LoadFromSource
sip1.Resize 123, 123, true
sip1.FontFamily = "Arial"
sip1.FontSize = 12
sip1.FontColor = "0x000000"
sip1.Bold = false
sip1.Italic = false
sip1.Underline = false
sip1.AddText "hey what's up?","Center-Center"
sip1.AddWatermark "../images/logo.png", "Bottom-Right", true, "0x000000", "50"
sip1.Overwrite = true
sip1.SaveJPEG 80
sip1.MoveNext
Wend
Set sip1 = Nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Curb Creations - Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../admin/assets/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"><%=pau.generateScriptCode()%></script>
<script src="../ScriptLibrary/incPU3.js" type="text/javascript"></script>
</head>
<body>
<!--- Include Admin Navigation Menu--->
<!--#include file="../admin/IncNav.asp"-->
<div id="divMainContent">
<form action="<%=DMX_uploadAction%>" method="post" enctype="multipart/form-data" name="form1" onSubmit="<%=pau.submitCode()%>;return document.MM_returnValue">
<label>File: <input name="image" type="file" onChange="<%=pau.validateCode()%>;return document.MM_returnValue" value=""></label>
<input type="submit" value="click here">
</form>
</div>
</body>
</html>
Replies
Replied 08 Nov 2007 15:02:30
08 Nov 2007 15:02:30 Georgi Kralev replied:
Hi John,
Try to replace <b>"0x000000"</b> with <b>"#000000"</b>
For example:
sip1.FontColor = <b>"#000000"</b>
and
sip1.AddWatermark "../images/logo.png", "Bottom-Right", true, <b>"#000000"</b>, "50"
<b>NOTE:</b>
For support please write to the correct support forum.
The support forums for <b>Smart Image Processor 2</b> can be found through the following link:
www.dmxzone.com/forum/default.asp?NewsId=12607
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
Try to replace <b>"0x000000"</b> with <b>"#000000"</b>
For example:
sip1.FontColor = <b>"#000000"</b>
and
sip1.AddWatermark "../images/logo.png", "Bottom-Right", true, <b>"#000000"</b>, "50"
<b>NOTE:</b>
For support please write to the correct support forum.
The support forums for <b>Smart Image Processor 2</b> can be found through the following link:
www.dmxzone.com/forum/default.asp?NewsId=12607
Georgi Kralev
----------------------------------
Support - www.DMXzone.com