Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old July 18th, 2005, 03:58 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

No, even on your remote host you should use something like "C:\Inetpub\wwwroot\Upload"

It may be a remote host for you, but from the server's point of view, the disk the file must be saved to is local, hence you use a local path.

If you don't know the exact physical location of the folder, use something like

myFolder = Server.MapPath("/Uploads")

to translate a virtual path into a physical path. Then use myFolder to save the file, e.g.:

Upload.Save(myFolder & myFileName)

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Glass Eye by Ed Rush & Optical (Track 5 from the album: Wormhole #1) What's This?
Reply With Quote
  #22 (permalink)  
Old July 18th, 2005, 10:51 PM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

so how do i know that there is a folder with this name in the pisical path of the server or no?and then when i want to download these uploaded items where should i link them?because i don't know where is my files.and should i write my files name in upload.save sentences?

Reply With Quote
  #23 (permalink)  
Old July 19th, 2005, 01:50 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

This should all be in the upload control's documentation. Do you have a copy of the docs for this control? If not, I suggest you do get a copy and read a bit. It may speed up this project.

Anyway, you can use the FileSystemObject (FS) to see if a folder exists using FolderExists. If necessary, you can create the folder before you allow the upload. Search Google for FileSystemObject and FolderExists for some useful results.

Let's say you have a domain like www.yourdomain.com. With your ISP, this may map to C:\inetpub\wwwroot\Customers\hastikeyvan

When you create a folder called Uploads (using FTP for example), the folder is accessible as http://www.yourdomain.com/Uploads
When you use Server.MapPath("/Uploads") to get the physical location of the Uploads folder in the root of your site you get C:\inetpub\wwwroot\Customers\hastikeyvan\Uploads

So, in that folder you can store the files, which can then be downloaded from http://www.yourdomain.com/Uploads


Does this help??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Dozer by Ed Rush & Optical (Track 9 from the album: Wormhole #1) What's This?
Reply With Quote
  #24 (permalink)  
Old July 19th, 2005, 05:10 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

i'm searching for filesystemobject and i find something abou it.cant i creat a folder myself without using these files?would you please introduce me a website that i can read more about fso ?
thank you

Reply With Quote
  #25 (permalink)  
Old July 19th, 2005, 05:17 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Where did you search and what articles did you read??

If you search Google with the terms I mentioned, the fourth result is this:

http://msdn.microsoft.com/library/de...lderexists.asp

with a tree on the left with various methods of the FSO object like CreateFolder.

This page also brings you here: http://msdn.microsoft.com/library/en...filesystem.asp

with about all the information about the FSO you can possible want....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Walking On The Sidewalks by Queens of the Stone Age (Track 4 from the album: Queens of the Stone Age) What's This?
Reply With Quote
  #26 (permalink)  
Old July 20th, 2005, 06:13 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

i read that items to told me and read a book about fso.i get information about it.but where should i use it?when i want to download files i should use it to tell users if the file was exist or no? i can't understand where is the usage of fso.would you please tell me where should i use it?(i'm look silly yes?:">:()

Reply With Quote
  #27 (permalink)  
Old July 20th, 2005, 06:16 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

i got it:D excuse me if i was so silly.thank you for your very very useful guidance.

Reply With Quote
  #28 (permalink)  
Old July 20th, 2005, 10:58 PM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

what do you mean by upload documentation?i don't what is it and where i can find it.

Reply With Quote
  #29 (permalink)  
Old July 21st, 2005, 01:40 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I also don't know exactly what it is and where to find it because I don't know what control you're using ;)

However, often when you either purchase a commercial component or download a free one, some form of documentation is supplied. This documentation also provides examples showing you how to accomplish tasks like saving a file to disk.

Check the web site where you downloaded the component from.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #30 (permalink)  
Old July 22nd, 2005, 10:55 PM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

i have my upload documentation.you mean i can find fso in those documents?
i have its copy.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading a file with ASP BananaJim Classic ASP Professional 1 December 7th, 2006 06:57 PM
uploading word with asp hastikeyvan Classic ASP Basics 0 July 6th, 2005 12:19 AM
Uploading asp files robbo Classic ASP Basics 2 January 19th, 2004 03:33 AM
Uploading Word to Access database jenty_c Pro JSP 0 January 11th, 2004 01:37 AM



All times are GMT -4. The time now is 07:20 AM.


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