PATH not a valid virtual path - trying to upload files to a URL

  •  05-18-2010, 8:52 AM

    PATH not a valid virtual path - trying to upload files to a URL

    Hi there,
     
    I have been tasked with creating an application which will run on a Rackspace Cloud server. The images must be saved to a location such as http://images.myserver.com and will be required to create folders there if neccessary. As such, a DOS path (eg. c:/images/") or UNC path (eg. \\server01\images\) cannot be used
     
    I have been unable to upload files to even my local machine using the URL naming instead of a path like "c:\images" or UNC like \\images\upload
     
    Please can you help me to upload files with Ajaxuploader to a URL destination, e.g. http://images.myserver.com The code fails at the line 
    args.CopyTo(imgPath + "/" + FileName) with error 'http://win7/hires/9999/19570/Xlarge/NatashaLeis1.JPG' is not a valid virtual path
     
    If I paste into the browser   'http://win7/hires/9999/19570/Xlarge/' it is found.
     
    Thanks in advance
     
    Rob Nagel
View Complete Thread