Solved

help defining save path using persits asp upload

Posted on 2008-10-24
2
331 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax for query to update table 2 41
VBScript on Html 15 57
Validating Date 4 29
Adding 1 the value of input "text" every 3 seconds 5 33
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.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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…

749 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