Forums

ASP

This topic is locked

Pure ASP Upload

Posted 23 May 2006 21:20:32
1
has voted
23 May 2006 21:20:32 Wanda Rattliffe posted:
This is my first Post. I am new to the Zone and also relatively new [although I have a basic understanding] to ASP.
A couple of days ago I downloaded my first DW extension. and I am having a few problems. I've probably left something out because when ever I try to upload a file, I get the following message.

Total Bytes Uploaded: 27001

No files were uploaded or no files have "Safe" file extensions.

Name: uploadimageurlbutton
Value: Upload

Time: 0

I'm providing my code hoping that someone can help me.
<pre id=code><font face=courier size=2 id=code>
&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%&gt;
&lt;!--#include file="ScriptLibrary/incPureUpload.asp" --&gt;
&lt;%
'*** Pure ASP File Upload 2.2.1
Dim GP_uploadAction,UploadQueryString
PureUploadSetup
If (CStr(Request.QueryString("GP_upload") &lt;&gt; "" Then
Dim pau_thePath,pau_Extensions,pau_Form,pau_Redirect,pau_storeType,pau_sizeLimit,pau_nameConflict,pau_requireUpload,pau_minWidth,pau_minHeight,pau_maxWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight,pau_timeout,pau_progressBar,pau_progressWidth,pau_progressHeight
'pau_thePath = """www.parker.com/cylinder/tempUploads"""
pau_thePath = """C:\Inetpub\wwwroot\QuotePortal\tempUploads"""
pau_Extensions = "dwg,doc,jpg,gif,tif"
pau_Form = "Upload"
pau_Redirect = "QReqMtgInfoVerify.asp"
pau_storeType = "file"
pau_sizeLimit = ""
pau_nameConflict = "over"
pau_requireUpload = "false"
pau_minWidth = ""
pau_minHeight = ""
pau_maxWidth = ""
pau_maxHeight = ""
pau_saveWidth = ""
pau_saveHeight = ""
pau_timeout = "600"
pau_progressBar = ""
pau_progressWidth = ""
pau_progressHeight = ""

Dim RequestBin, UploadRequest
CheckPureUploadVersion 2.21
ProcessUpload pau_thePath,pau_Extensions,pau_Redirect,pau_storeType,pau_sizeLimit,pau_nameConflict,pau_requireUpload,pau_minWidth,pau_minHeight,pau_maxWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight,pau_timeout
end if
%&gt;

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;File Upload&lt;/title&gt;
&lt;script language="javascript" src="../../../inetpub/wwwroot/QuotePortal/ScriptLibrary/incPureUpload.js"&gt;&lt;/script&gt;
&lt;script language="javascript" src="ScriptLibrary/incPureUpload.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;P&gt;&lt;strong&gt;Attach Documents Here&lt;/strong&gt;&lt;/P&gt;
&lt;form action="_2020AdvancedUploadProcessor.asp" id="uploadForm" enctype="multipart/form-data" method="post"&gt;
&lt;input style="display:block;" type="file" name="strUploadImageFileName1" /&gt;
&lt;br&gt;


&lt;script type="text/javascript"&gt;
&lt;!--
//&lt;![CDATA[
if(document.getElementById)
{
document.writeln('&lt;input type="button" value="...Add More Files" onclick="cloneFileUploadElement(this);return false;" \/&gt;');
}

var fileInputElementIncrement = 1;

function cloneFileUploadElement(theButton)
{
fileInputElementIncrement++;

var objForm = document.getElementById("uploadForm";
var elToClone = uploadForm.firstChild;
var theClone = elToClone.cloneNode(true);
theClone.name = "strUploadImageFileName"+ fileInputElementIncrement;
objForm.insertBefore(theClone,objForm.firstChild);
}
//]]&gt;
//--&gt;
&lt;/script&gt;

&lt;input type="submit" name="uploadImageURLButton" value="Upload" /&gt;&lt;br&gt;&lt;/form&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;form action="FileUpload.asp" id="closeWindow"&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;div align="center"&gt;&lt;input type="button" onClick="window.close()" name="button" value="Close Window"&gt;&lt;/div&gt;

&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</font id=code></pre id=code>

Reply to this topic