Pure ASP Upload 2 Support Product Page

This topic is locked
This topic was archived

IIS 7 pure asp upload 3

Reported 05 Jan 2008 20:11:55
1
has this problem
05 Jan 2008 20:11:55 alberto catagni posted:
hi I recently installed vista business with iis 7...
I copied a web application I did in asp (working very well on w2003 server IIS 6 and IIS 5.1 xp pro) but right now there is no way to make pure asp upload with iis 7.

it gave me always this error when I post images or files to upload:
Provider error '80070057'

Parametro non corretto.

/ScriptLibrary/incPU3Class.asp, line 950

my code is the following:
<pre id=code><font face=courier size=2 id=code>
'*** Pure ASP File Upload 3.0.5
' Process form UploadImageForm
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "/ScriptLibrary"
pau.ConflictHandling = "uniq"
pau.StoreType = "path"
pau.UploadFolder = """"" & UploadFormRequest(""Cartella"" & """""
if TipoFile = "" then
pau.AllowedExtensions = "GIF,JPG,PNG" ' "images"
else
pau.AllowedExtensions = "PDF,XLS,DOC,ZIP,RTF,PPT,ARJ,DWG,DXF,TXT" 'altri
end if
pau.MaxFileSize = 20480
pau.Required = true
pau.ProcessUpload
pau.SaveAll

</font id=code></pre id=code>

on my web server works great... but on iis 7 <img src=../images/dmxzone/forum/icon_smile_dead.gif border=0 align=middle>
any help appreciated...
thanks...

Replies

Replied 07 Jan 2008 16:02:57
07 Jan 2008 16:02:57 Kiril Iliev replied:
Hi Alberto,

We are aware of this issue and we will look into it.

Could you please provide us with a more thorough description of your problem you can give?

When this happens? Provide us with exact steps please so we could reproduce the issue.

What are your server settings?

Did you setup correctly the settings of your /ScriptLibrary folder?

What are your IIS 7.0 settings?

Regards,



DMX Zones Support Team
Replied 07 Jan 2008 23:32:00
07 Jan 2008 23:32:00 alberto catagni replied:
there is no special settings for iis 7 (vista business version) not server...
I only enabled parent path and nothing else

but the erro refers to this line

<pre id=code><font face=courier size=2 id=code>

Function GetUnicode(str)
If m_CharSet &lt;&gt; "" Then
Dim BinaryStream, outStr
Set BinaryStream = Server.CreateObject("ADODB.Stream"
BinaryStream.Type = 2
BinaryStream.Open
str = GetBinary("....DMX" & str
BinaryStream.WriteText str
BinaryStream.Position = 0
BinaryStream.CharSet = m_CharSet
outStr = BinaryStream.ReadText &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;950
GetUnicode = Mid(outStr, InStr(outStr, "DMX"+3)
Else
GetUnicode = GetUnicodeSimple(str)
End If
End Function
</font id=code></pre id=code>

my code page is 65001 charset=utf-8

let me know what you think about...
thanks...

Replied 07 Jan 2008 23:38:53
07 Jan 2008 23:38:53 alberto catagni replied:
this is my page
<pre id=code><font face=courier size=2 id=code>
&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;
&lt;!--#include virtual="/include/sito.costanti.asp" --&gt;
&lt;!--#include virtual="/include/library.asp" --&gt;
&lt;!--#include file="include/functions.manager.asp" --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;
&lt;head&gt;

&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;&lt;%=SiteAdminTitle%&gt;&lt;/title&gt;
&lt;style type="text/css"&gt;
&lt;!--
@import url("css/admin.css";
--&gt;
&lt;/style&gt;

&lt;!--#include virtual="/ScriptLibrary/incSIP2Class.asp" --&gt;
&lt;!--#include virtual="/ScriptLibrary/incPU3Class.asp" --&gt;
&lt;!--#include virtual="/ScriptLibrary/incPU3Utils.asp" --&gt;
&lt;%
Dim ReturnURL
ReturnURL = request.QueryString("ReturnURL"
if ReturnURL = "" or IsNull(ReturnURL) then
ReturnURL = PathManagerHome
end if

Dim TipoFile : TipoFile = request.QueryString("TipoFile"

function IconaFile(Doc)
Const FS_PercorsoIconeFiles = "/images/docicons/"
if Len(Doc) = 0 then Exit Function
dim ext
ext = right(Doc,3)
if EsisteFile(FS_PercorsoIconeFiles & ext & ".gif" then
IconaFile = "&lt;img src=""" & FS_PercorsoIconeFiles & ext & ".gif"""" align=""absmiddle"" border=""0""&gt;"
else
IconaFile = "&lt;img src=""" & FS_PercorsoIconeFiles & "gen.gif"""" align=""absmiddle"" border=""0""&gt;"
end if

end function
' in querystring parametri che agiscono sui componenti:
'Cartella = Cartella di scrittura file
'xyResize = definisce ridimensionamento immagine caricata
'CreateThumbNail = abilita la creazione del thumbnail
'ThumbNailSize = definisce la dimenzione della thumbnail creata
'DelID = id dell'immagine da cancellare (eventuale)
'Table_Ref = Tabella di riferimento del record associato all'immagine per salvataggio dati
'ID_Ref = id riferimento del record associato all'immagine
'Principale = definisce se è l'immagine principale del record di riferimento

'parametri upload and resize
dim Cartella

Cartella = request.QueryString("Cartella"

%&gt;
&lt;%
'*** Pure ASP File Upload 3.0.5
' Process form UploadImageForm
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "/ScriptLibrary"
pau.ConflictHandling = "uniq"
pau.StoreType = "path"
pau.UploadFolder = """"" & UploadFormRequest(""Cartella"" & """""
if TipoFile = "" then
pau.AllowedExtensions = "GIF,JPG,PNG" ' "images"
else
pau.AllowedExtensions = "PDF,XLS,DOC,ZIP,RTF,PPT,ARJ,DWG,DXF,TXT" 'altri
end if
pau.MaxFileSize = 20480
pau.Required = true
pau.ProcessUpload
pau.SaveAll
%&gt;
&lt;script type="text/javascript"&gt;&lt;%=pau.generateScriptCode()%&gt;&lt;/script&gt;
&lt;script src="/ScriptLibrary/incPU3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body style="text-align:left;"&gt;
&lt;p&gt;&lt;strong&gt;Carica File&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME")
If (UploadQueryString &lt;&gt; "" Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(UploadQueryString)
End If
if request.QueryString("GP_Upload" = "true" then
dim ArrFile
ArrFile = ReturnFileInfo(UploadFormRequest("fileAllegato")
%&gt;
&lt;p&gt;Caricamento eseguito.&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;% if Not IsNull(ArrFile) then
dim ext : ext = right(ArrFile(1),3)
select case lcase(ext)
case "jpg,gif,png"
%&gt;
&lt;img src="&lt;%=ArrFile(0) & ArrFile(1)%&gt;" width="60" /&gt;
&lt;%
Case Else
%&gt;
&lt;%=IconaFile(ArrFile(1)) & "&nbsp;" & ArrFile(1) %&gt;
&lt;%
end select
else %&gt;
&lt;p&gt;&lt;strong&gt;Nessuna informazione disponibile.&lt;/strong&gt;&lt;/p&gt;
&lt;% end if %&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&lt;input name="Button" type="button" class="buttonSmall-Small" value="continua" onclick="self.location='&lt;%=ReturnURL%&gt;'" /&gt;
&lt;/p&gt;
&lt;% else %&gt;
&lt;form action="&lt;%=MM_editAction%&gt;" method="POST" enctype="multipart/form-data" name="UploadImageForm" id="UploadImageForm" onSubmit="&lt;%=pau.submitCode()%&gt;;return document.MM_returnValue"&gt;
&lt;p&gt;
&lt;input name="fileAllegato" type="file" id="fileAllegato" onChange="&lt;%=pau.validateCode()%&gt;;return document.MM_returnValue" /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;input name="Annulla" type="button" class="buttonSmall-Small" id="Annulla" value="Annulla" onclick="self.location='&lt;%=ReturnURL%&gt;'" /&gt;
&lt;input name="Carica" type="submit" class="button-green" id="Carica" value="Carica" /&gt;
&lt;input name="Cartella" type="hidden" id="Cartella" value="&lt;%=Cartella%&gt;" /&gt;
&lt;/p&gt;

&lt;input type="hidden" name="MM_insert" value="UploadImageForm"&gt;
&lt;/form&gt;
&lt;% end if%&gt;


&lt;div class="Spacer"&gt;&lt;/div&gt;


&lt;/body&gt;
&lt;/html&gt;

</font id=code></pre id=code>
Replied 09 Jan 2008 15:27:09
09 Jan 2008 15:27:09 George Petrov replied:
Alberto,

you are using an old version of Pure ASP Upload!

The latest version is 3.0.9 - Please download it from www.dmxzone.com/go?12064

Also you are posting in the ver 2 forums - you should post at the ver 3 forums:
www.dmxzone.com/forum/default.asp?NewsId=12064

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 10 Jan 2008 23:16:22
10 Jan 2008 23:16:22 alberto catagni replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Alberto,

you are using an old version of Pure ASP Upload!

The latest version is 3.0.9 - Please download it from www.dmxzone.com/go?12064

Also you are posting in the ver 2 forums - you should post at the ver 3 forums:
www.dmxzone.com/forum/default.asp?NewsId=12064

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

there is no way... It won't work...
very... sad... I actually posted here...
www.dmxzone.com/forum/topic.asp?topic_id=40442&NewsId=12064
help appreciated...
Thanks
Replied 11 Jan 2008 12:44:51
11 Jan 2008 12:44:51 George Petrov replied:
follow up in the other topic

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------

Reply to this topic