Solved

help defining save path using persits asp upload

Posted on 2008-10-24
2
321 Views
Last Modified: 2012-05-05
I'm trying to upload a file using persits aspupload. I'm using ASP VBScript.
I'm having trouble defining the path for the file to save in. Here is the code.

<%
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.Save("image")       <--------------------------------------------

Response.Write Count & " file(s) uploaded to image"
%>

I want the file to save in a folder called 'image'
Here is the URL I see when viewing an image place in that folder:

http://www.glowfishtw.com/uploadtest/image/skyfire.jpg

The upload file is located in the 'uploadtest' folder.
What should I put in this line to get the file to upload to the right place:

Count = Upload.Save("image")

Here is the current page:
http://www.glowfishtw.com/uploadtest/getfile.asp

Thanks for any help.
0
Comment
Question by:elliottbenzle
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 500 total points
ID: 22801561
elliottbenzle,

Where is the image folder in relation to this ASP page?

You need a physical path.  If image is a subfolder in the directory where the ASP page is then you would use ...

Upload.Save(Server.Mappath("image/"))

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22804924
I'm glad I could help.  Thanks for the grade, the points and the fun question.
bol
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now