Forums
This topic is locked
passed value for upload path
Posted 20 Jun 2003 15:39:28
1
has voted
20 Jun 2003 15:39:28 Scott Burtscher posted:
Does anyone have any thoughts on why I can't get the variable "pau_thePath " in Pure ASP Upload 2.10 to be set to the value of another variable? In the code below, myVar is set equal to my Request and it will write that value to the screen, but I can't seem to set "pau_thePath " equal to this value. Any thoughts are appreciated.<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="ScriptLibrary/incPureUpload.asp" -->
<%
'*** Pure ASP File Upload 2.1.0
Dim GP_uploadAction,UploadQueryString, myVar
myVar=Request("category"
if myVar<>"" then
response.write(myVar)
else
response.write("Not it"
end if
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 = myVar
response.write(myVar)
pau_Extensions = "GIF,JPG,JPEG,BMP,PNG"
pau_Form = "myForm"
pau_Redirect = "admin.asp"
pau_storeType = "file"
pau_sizeLimit = ""
pau_nameConflict = "over"
pau_requireUpload = "true"
pau_minWidth = ""
pau_minHeight = ""
pau_maxWidth = ""
pau_maxHeight = ""
pau_saveWidth = ""
pau_saveHeight = ""
pau_timeout = "600"
pau_progressBar = ""
pau_progressWidth = "300"
pau_progressHeight = "100"
Dim RequestBin, UploadRequest
CheckPureUploadVersion 2.10
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
%>
Replies
Replied 20 Jun 2003 16:26:28
20 Jun 2003 16:26:28 Vince Baker replied:
Not that this will solve your problem, but your coding looks correct.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting