Solved

help defining save path using persits asp upload

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
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 how to count occurrences of each item in an array.

705 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