Asp vb upload problem - MapPath? -
07-21-2004
, 07:10 AM
Hi
I had the following piece of code which uploads a file to my site. The hosting
company has made a change to the server and now upload doesn't work.
Heres my code:
<%
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload.Save "e:/domains/fmenvironmental.co.uk/user/htdocs/Uploads/images"
For Each File in Upload.Files
pdf = File.ExtractFileName
Next
%>
The web site is www.fmenvironmental.co.uk
I contacted the hosting comany and he suggests the following "use a server
MapPath option as this will work no matter how the hosting environment changes"
In as little moves as possible, can this be fixed in the change of a line? Or
how do i include MapPath into this code to make this work? |