?
Solved

help defining save path using persits asp upload

Posted on 2008-10-24
2
Medium Priority
?
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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/…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

765 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