Pure ASP Upload 3 Support Product Page

This topic is locked

Provider error '80070057'

Reported 14 Aug 2008 19:36:12
have this problem
14 Aug 2008 19:36:12 Clare Richardson posted:
Am getting the following error when trying to upload files from the following form at www.bigprint.org.uk/artworkFTP.asp. Have tried doing this form a Mac and a PC

"Provider error '80070057'

The parameter is incorrect.

/ScriptLibrary/incPU3Class.asp, line 950"

My code is:
<!--#include file="ScriptLibrary/incPU3Class.asp" -->
<!--#include file="ScriptLibrary/incPU3Utils.asp" -->
'*** Pure ASP File Upload 3.0.10
' Process form UploadFiles
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 = """ClientsArtwork"""
pau.MaxFileSize = 12000
if pau.Done then Response.Redirect "thankyouFTP.html"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Expires" content="Fri, 26 Mar 1999 23:59:59 GMT" />
<title>Browse and upload artwork</title>

<link href="oneColFixCtrHdr.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="HeaderPics.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"><%=pau.generateScriptCode()%></script>
<script src="ScriptLibrary/incPU3.js" type="text/javascript"></script>

<body class="oneColFixCtrHdr">

<div id="container">
<div id="header">
<!-- end #header -->
<img src="pics/BigPrintLimited.gif" alt="Big Print" width="187" height="138" /> </div>
<div id="mainContent"> <div id="Navigation">
<li><a href="index.html">home</a></li>
<li><a href="posters.html">posters</a></li>
<li><a href="mountedprints.html">mounted prints</a></li>
<li><a href="businesstation.html">business stationery,<br />
leaflets &amp; brochures</a></li>
<li><a href="canvases.html">canvases</a></li>
<li><a href="bannerstands.html">banner stands</a></li>
<li><a href="popupstands.html">pop up stands</a></li>
<li><a href="outdoorbanners.html">outdoor banners</a></li>
<li><a href="featherflags.html">feather flags</a></li>
<li><a href="graphpodlightbox.html">graphic pods &amp; <br />
lightboxes </a></li>
<li><a href="literaturestands.html">literature stands</a></li>
<li><a href="artworkservice.html">artwork service</a></li>
<li><a href="aboutbigprint.html">about us</a></li>
<li><a href="contactbigprint.html">contact us</a></li>
<li><a href="artworksubmiss.html">artwork submission</a></li>
<li><a href="printsizes.html">print sizes</a></li>
<li><a href="returnspolicy.html">returns policy</a></li>
<li><a href="enquiryform.html">enquiry form</a></li>

<h1><strong>big print</strong> artwork upload form</h1>
<form action="<%=DMX_uploadAction%>" method="post" enctype="multipart/form-data" name="UploadFiles" id="UploadFiles" onSubmit="<%=pau.submitCode()%>;return document.MM_returnValue">
<input name="uploadfiles" type="file" id="uploadfiles" onChange="<%=pau.validateCode()%>;return document.MM_returnValue" />
<input type="submit" name="submit" id="submit" value="Submit" />
<!-- end #mainContent --></div>

<div id="footer">
<p>big print limited - harts hill road, thatcham, berkshire rg18 4nw | tel 0845 470 4040 | <a href="mailto: "> </a> | site by: <a href="www.clarezone.co.uk" target="_blank">Clare Richardson</a></p>
<!-- end #footer --></div>
<!-- end #container --></div>

I have uploaded all of the linked files (for progress bar) and ScriptLibrary.

Please bear in mind, when you reply, that I am a designer and not a techie/programmer.

Am working to tight deadline (Friday afternoon) so a prompt reply would be much appreciated. Thanks[red][/red]


Replied 15 Aug 2008 11:56:12
15 Aug 2008 11:56:12 Miroslav Zografski replied:
Hi Clare,

Please, get your test page working in order for me to investigate your issue. So far i can tell you that your code is ok and try to test the page on different server and from different workstation.



DMXZone.com Support Team
Replied 15 Aug 2008 17:48:42
15 Aug 2008 17:48:42 Clare Richardson replied:
Please remove the full stop at end of test files's URL. File is working but the full stop attached to the URL link unfortunately

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi Clare,

Please, get your test page working in order for me to investigate your issue.
So far i can tell you that your code is ok and try to test the page on different server and from different workstation.



DMXZone.com Support Team
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 18 Aug 2008 10:34:06
18 Aug 2008 10:34:06 Clare Richardson replied:
Replied 18 Aug 2008 11:55:11
18 Aug 2008 11:55:11 Miroslav Zografski replied:
Hi Clare,

This error regards new IIS 7 and Unicode in SQL database.
I have sent a mail to you in order to deliver a fix for your issue, witch is fixed for upcoming new version of PAU - 3.0.11.



DMXZone.com Support Team
Replied 18 Sep 2008 03:40:39
18 Sep 2008 03:40:39 brian johnston replied:
Hi there, we are having this same IIS7 issue, can you send us the fix as well? Thank you! Keep up the great work!
Replied 20 Sep 2008 11:06:43
20 Sep 2008 11:06:43 Jerry Smith replied:
Please could you send me the new version also to test it? I have same error and I just migrated from IIS6.0 to IIS7.0 and PureASPUpload 3.0.10 doesn't work any more <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
Replied 20 Sep 2008 12:24:59
20 Sep 2008 12:24:59 brian johnston replied:
Guys, Those of us who are on IIS 7 now are really in a bind! Please help! Thank you!
Replied 20 Sep 2008 18:25:51
20 Sep 2008 18:25:51 Jerry Smith replied:
Yes, everything works here (rinning in 32-bit mode of course) except PureASPUpload and it is very inconvenient that it doesn't <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle> Please send as a beta or something...
Replied 08 Oct 2008 16:04:26
08 Oct 2008 16:04:26 Hans Gelok replied:
Hi Miroslaf,

Do you have any idea when 3.0.11 will be published?
Replied 08 Oct 2008 16:52:24
08 Oct 2008 16:52:24 Hans Gelok replied:
The fix for 'This error regards new IIS 7 and Unicode in SQL database.' is, thanks to my colleague Tonci (twitter.com/gigatony), as followed:

&lt;&lt;&lt;incPureUpload.asp (pureupload v2.*) line 379 was:
If UploadCharSet &lt;&gt; Then
If UploadCharSet &lt;&gt; "" AND UploadCharSet &lt;&gt; "utf-8" Then

&lt;&lt;&lt;incPU3Class.asp (pureupload &lt; v3.0.11) line 941 was:
If m_CharSet &lt;&gt; Then
If m_CharSet &lt;&gt; "" AND m_CharSet &lt;&gt; "utf-8" Then

Replied 08 Oct 2008 17:06:47
08 Oct 2008 17:06:47 brian johnston replied:
Hans, Thanks for the information. When I changed that line you stated, I now get this error:

Microsoft VBScript runtime error '800a005e'

Invalid use of Null

/ScriptLibrary/incPU3Class.asp, line 927

Any Ideas?
Replied 08 Oct 2008 17:23:50
08 Oct 2008 17:23:50 Hans Gelok replied:

In our code following code is on rule 927:
Dim Index

We use this (modified version)

Function GetUnicode(str)
If m_CharSet &lt;&gt; "" AND m_CharSet &lt;&gt; "utf-8" Then
Dim BinaryStream, outStr
Set BinaryStream = Server.CreateObject("ADODB.Stream"

BinaryStream.Type = 2
str = GetBinary("....DMX" & str
BinaryStream.WriteText str
BinaryStream.Position = 0
BinaryStream.CharSet = m_CharSet
outStr = BinaryStream.ReadText
GetUnicode = Mid(outStr, InStr(outStr, "DMX"+3)

GetUnicode = GetUnicodeSimple(str)
End If
End Function
Replied 08 Oct 2008 18:07:34
08 Oct 2008 18:07:34 brian johnston replied:

Our code is same as yours.

Replied 08 Oct 2008 18:08:52
08 Oct 2008 18:08:52 brian johnston replied:
Hans, With line 927, ours is:
For Index = 1 To LenB(str)

Which is within this function:

Private Function GetUnicodeSimple(str)
Dim Index
For Index = 1 To LenB(str)
GetUnicodeSimple = GetUnicodeSimple & Chr(AscB(MidB(str, Index, 1)))
End Function
Replied 09 Oct 2008 13:00:59
09 Oct 2008 13:00:59 Hans Gelok replied:
Hi Brian,

What is your codepage setting (line 1) ?
We use codepage=”65001”

Good luck
Replied 17 Jul 2011 14:26:44
17 Jul 2011 14:26:44 Clyde Warden replied:
For Windows server 2008, SQL 2008, the above change does fix the problem Provider error '80070057':

In incPU3Class.asp

If m_CharSet <> "" Then

Change to

If m_CharSet <> "" AND m_CharSet <> "utf-8" Then
Replied 20 Oct 2011 19:20:22
20 Oct 2011 19:20:22 Jason Burns replied:
Hi Clyde,

Just wanted to say thanks for your fix for this.

I had a working page with ASPUpload then moved to new web server which gave error around the line number for the code you highlighted.

Changed to your new code and it worked first time.


Touch Web Design

Reply to this topic