<%@ Language=VBScript %> <% '************************************************************************* ' DO NOT MODIFY THIS SCRIPT IF YOU WANT UPDATES TO WORK! ' Function : Upload Files ' Product : CandyPress Store Frontend ' Version : 2.5 ' Modified : February 2004 ' Copyright: Copyright (C) 2004 CandyPress.Com ' See "license.txt" for this product for details regarding ' licensing, usage, disclaimers, distribution and general ' copyright requirements. If you don't have a copy of this ' file, you may request one at webmaster@candypress.com '************************************************************************* Option explicit Response.Buffer = true const adminLevel = 1 %> <% 'Database dim mySQL, cn, rs '************************************************************************* 'Are we in demo mode? if demoMode = "Y" then response.redirect "sysMsg.asp?errMsg=" & server.URLEncode("DEMO MODE. Sorry, this featured is NOT available in Demo Mode.") end if 'Open Database Connection call openDB() 'Store Configuration if loadConfig() = false then response.redirect "sysMsg.asp?errMsg=" & server.URLEncode("Could not load Store Configuration settings.") end if 'Close Database Connection call closedb() 'Get UserID of locally logged on user (if applicable) dim logonWinUser logonWinUser = Request.ServerVariables("LOGON_USER") %> Upload Files

<% if len(trim(Request.QueryString("msg"))) > 0 then Response.Write "" & Request.QueryString("msg") & "
" else Response.Write " 
" end if %>
1. Select Files to Upload.
File 01
File 02
File 03
File 04
File 05

2. Select Upload Folder.
Product Images Directory (<%=pImagesDir%>)
Downloadable Items Directory (<%=pDownloadDir%>)

3. Submit Upload.



<% 'See if user is already logged on locally to the web server If IsEmpty(logonWinUser) Or IsNull(logonWinUser) Or logonWinUser="" Then %> Logon locally to web server (Help) <% else %> You are logged on to your server as <%=logonWinUser%> <% end if %>


Help and Instructions
1. You can upload up to 5 files at a time to the folder of your choice.

2. For the utility to save the files on your web server, you must have the correct permissions. The selected folder must either have read/write permissions given to the anonymous web user account, OR you must 'Log on Locally' to your web server with another UserID and Password that has these permissions. Users who have direct access to their web servers can set this up themselves, or you will have to contact your web hosting company to do this for you. NOTE : Most users with hosted web accounts will probably already have an account that they can use to upload files to the server. This account is usually supplied by the hosting company to the user for the purpose of uploading web pages and making modifications to their web site. This account will usually have the permissions required by the web server to allow uploads.

3. If you are experiencing any problems with the upload other than what is described above, it could be that your web server has an outdated MDAC or is misconfigured. If you are unable to resolve the problem, you will have to use FTP to upload images and files to the appropriate folder.