Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2004, 07:32 AM
Friend of Wrox
Points: 1,288, Level: 14
Points: 1,288, Level: 14 Points: 1,288, Level: 14 Points: 1,288, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default File Upload in ASP

Dears how are u all ?
 I am going to face the problem in these days that I want to upload the file in ASP and getting all the properties of the file and save the file to the virtual path.
I can do all of the above but only the last one which is to save the file to the desired path. For example it will store the file on the "C:/Upload"

But I want to save it on "../upload" path within the folder.
 So how can I do this all.
Thnaks in advance
:)

(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
__________________
(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is  how you got it
 
Old December 11th, 2004, 10:14 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can use Server.MapPath to get the physical path of the virtual path ../Uploads. E.g.:
Code:
Dim myFolder
myFolder = Server.MapPath("../Uploads")

' Then use myFolder to save your files....
HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter File Types in ASP.NET File Upload ramuis78 ASP.NET 2.0 Basics 2 May 31st, 2007 10:50 AM
To upload an Excel File to the Server using ASP SMM Classic ASP Professional 4 March 26th, 2007 03:49 AM
File upload in ASP Nicky2k Classic ASP Basics 0 December 8th, 2004 12:00 PM
Please Help: ASP file upload and download vtcyee Classic ASP Components 1 July 10th, 2004 06:21 AM
About file upload and download using ASP vtcyee Classic ASP Databases 1 July 10th, 2004 12:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.