Where are files uploaded to?

Last post 06-05-2011, 10:05 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  06-04-2011, 4:48 PM 67809

    Where are files uploaded to?

    Hi there,
     
    I've just downloaded the trial version of asp uploaded but I can't upload my files to anywhere other than c:\windows\temp etc.
     
    I try specifying the upload folder but I don't know where it's relative to, the scripts folder running my asp? All I get is "directory does not exist."
     
    Any ideas?
     
     
    UPDATE
     
     Have now tried to move the savefiles inside the scripts folder where I am executing the asp and now get the message"
    Unable to calculate ApplicationRoot , make sure the files is not in virtual directory! at function Oxe8"
  •  06-05-2011, 10:05 PM 67816 in reply to 67809

    Re: Where are files uploaded to?

    Hi KJG,
     
    Tow ways.
     
    1.  Set property SaveDirectory. And than the upload file will save into the folder you set.
     
    uploader.SaveDirectory="savefiles"
     
    2. Use function "CopyTo" or "MoveTo" to save the upload files.
     
            'Copys the uploaded file to a new location.    
            mvcfile.CopyTo("/uploads")            
            'Moves the uploaded file to a new location.    
            mvcfile.MoveTo("/uploads")  
     
    Example "form-multiplefiles.asp" shows you how these functions work.
     
    Regards,
     
    ken
View as RSS news feed in XML