View Full Version : Uploading Problems

12-30-2004, 11:23 PM
This may be a dumb question but i'll ask it nonetheless:
I'm trying to upload to a remote server.....

Why I getting an error with this code:

Set Upload=Server.CreateObject("Persits.Upload.1")
Count = Upload.SaveVirtual ("http://m.1asphost.com/thegroupgenesis/")


===============THEN THE ERROR==============================
Server.MapPath() error 'ASP 0173 : 80004005'

Invalid Path Character

/doUpload.asp, line 8

An invalid character was specified in the Path parameter for the MapPath method.

12-30-2004, 11:37 PM
Is the page actually doing the upload with the aspupload component on the same server as where you are trying to save the file to?


12-31-2004, 12:51 AM
umm you can't upload a URL, unless that COM object excepts it, obviously it doesn't.

try: /thegroupgenesis/

12-31-2004, 01:06 AM
Okay so i can't upload a URL u say..... :eek:
Here's the deal the "/thegroupgenesis" won't work SIMPLY because the directory "thegroupgenesis" is NOT ON THE SERVER the asp file is. I want upload the file to another remote server location....

How do i get that into the upload code? Thats what I wana know

Thanks tho... :confused: :thumbsup:

12-31-2004, 01:54 AM
My best guess is that a physical path is needed instead of a virtual path. If so, then perhaps change this:

Count = Upload.SaveVirtual ("http://m.1asphost.com/thegroupgenesis/")

To be more like this instead (using the appropriate physical path of course):

Count = Upload.SaveVirtual ("d:\websites\1asphost.com\thegroupgenesis\")

12-31-2004, 05:45 AM
Okay.... i really don't have a clue where and what letter the physical drive would b....

I'm writing this code to upload to a free server.....
all i know about the server is that the home site is http://www.1asphost.com
and my files reside somewhere in

12-31-2004, 05:49 AM
I use them too I know the don't alow a lot of things -_-

12-31-2004, 06:07 AM
Very generally speaking, the upload form needs to point to a page/script
that resides on the same server that you need to place the file on. If this is all an internal thing within a network, then permissions have to be worked out for one box to upload to another(Intranet/San/Nas scenario). If this is Internet thing, upload script should be on that same server where the file goes.


12-31-2004, 07:01 AM
To get some more clues about what the physical folder is:

Response.Write "Server.MapPath with . : " & Server.MapPath(".") & "<br>"

01-02-2005, 04:32 AM
Man thanks!!!!
Thanks alot!!!!

I got the physical path that I need.... thanks alot!!!!

I'm gonna try that on the remote server now!