Forums
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>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="ScriptLibrary/incPureUpload.asp" -->
<%
'*** Pure ASP File Upload 2.2.1
Dim GP_uploadAction,UploadQueryString
PureUploadSetup
If (CStr(Request.QueryString("GP_upload") <> "" 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
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>File Upload</title>
<script language="javascript" src="../../../inetpub/wwwroot/QuotePortal/ScriptLibrary/incPureUpload.js"></script>
<script language="javascript" src="ScriptLibrary/incPureUpload.js"></script>
</head>
<body>
<P><strong>Attach Documents Here</strong></P>
<form action="_2020AdvancedUploadProcessor.asp" id="uploadForm" enctype="multipart/form-data" method="post">
<input style="display:block;" type="file" name="strUploadImageFileName1" />
<br>
<script type="text/javascript">
<!--
//<![CDATA[
if(document.getElementById)
{
document.writeln('<input type="button" value="...Add More Files" onclick="cloneFileUploadElement(this);return false;" \/>');
}
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);
}
//]]>
//-->
</script>
<input type="submit" name="uploadImageURLButton" value="Upload" /><br></form>
<p> </p>
<p> </p>
<form action="FileUpload.asp" id="closeWindow">
<p> </p>
<div align="center"><input type="button" onClick="window.close()" name="button" value="Close Window"></div>
</form>
</body>
</html>
</font id=code></pre id=code>