Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy Uploading Problems (Remote Uploading)

    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.
    Last edited by jaywhy13; 12-30-2004 at 10:30 PM. Reason: Needed to rephrase

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Aug 2003
    Location
    Shawnee Mission, Kansas
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    umm you can't upload a URL, unless that COM object excepts it, obviously it doesn't.

    try: /thegroupgenesis/
    John Shepard
    Beyond The Impossible
    -----------------------------
    http://freeasphelp.tech.nu/
    FreeASPHelp by John Shepard
    Sign Up for a free account today!
    100% Free ASPHelp

  • #4
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Post


    Okay so i can't upload a URL u say.....
    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...

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    478
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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\")
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

  • #6
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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

  • #7
    Regular Coder
    Join Date
    Sep 2004
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use them too I know the don't alow a lot of things -_-

  • #8
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #9
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    478
    Thanks
    0
    Thanked 2 Times in 2 Posts
    To get some more clues about what the physical folder is:

    <%
    Response.Write "Server.MapPath with . : " & Server.MapPath(".") & "<br>"
    %>
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

  • #10
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Cool

    Man thanks!!!!
    Thanks alot!!!!

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

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





  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •