jaywhy13
12-30-2004, 10: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:
<html>
<body>
<%
Set Upload=Server.CreateObject("Persits.Upload.1")
Count = Upload.SaveVirtual ("http://m.1asphost.com/thegroupgenesis/")
%>
</body>
</html>
===============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.
fractalvibes
12-30-2004, 10: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?
fv
freeasphelp
12-30-2004, 11:51 PM
umm you can't upload a URL, unless that COM object excepts it, obviously it doesn't.
try: /thegroupgenesis/
jaywhy13
12-31-2004, 12:06 AM
:o
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:
Bullschmidt
12-31-2004, 12: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\")
jaywhy13
12-31-2004, 04: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
http://m.1asphost.com/thegroupgenesis
shinko_metsuo
12-31-2004, 04:49 AM
I use them too I know the don't alow a lot of things -_-
fractalvibes
12-31-2004, 05: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.
fv
Bullschmidt
12-31-2004, 06:01 AM
To get some more clues about what the physical folder is:
<%
Response.Write "Server.MapPath with . : " & Server.MapPath(".") & "<br>"
%>
jaywhy13
01-02-2005, 03: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!
:thumbsup:
:D
:rolleyes: