tags:

views:

30

answers:

0

Hi All,

I'm having trouble after moving my site to a new server. There is an admin page in ASP that is designed to allow the user to upload photos to the SQL database. It seems to be working alright (no errors returned) but the site will only display blanks as though it can't find where the images are saved. So I'm guessing my path may be incorrect.

Here's the code:

path = "D:\Hosting\5970131\html\images\pics\"

set fso = server.CreateObject("Scripting.FileSystemObject") 
if fso.folderexists(path) then
else
fso.createfolder path
end if


For Each File in Upload.Files
   File.SaveAsVirtual "\images\pics" & "\" & maxid & ".jpg"
Next

THANKS IN ADVANCE!