Hello out there!
I have a problem when uploading files via ASP.
I have an ISP which uses the SAFileUP-component to upload files. Now as default the uploaded file gets uploaded on their server.
Can anyone tell me if it is possible to get the uploaded file to be uploaded somewhere else, for example to my local machine or to my own server....
Here is the code i am using:
<% @ LANGUAGE = VBSCRIPT %>
<html>
<body>
<%
set upl = Server.CreateObject("SoftArtisans.FileUp")
' name the path, the file should be placed in
' - here is used the actual path (.)
upl.Path = Server.MapPath(".")
if (upl.IsEmpty) then
Response.write "<p>error: file is empty or do not exist
!</p>"
elseif (upl.ContentDisposition <> "form-data") then
Response.write "<p>error: Upload failed!</p>"
else
Response.write "<p>file is now uploaded.</p>"
on error resume next
' save the uploaded file on the isp server
upl.Save
end if
%>
</body>
</html>
I have a problem when uploading files via ASP.
I have an ISP which uses the SAFileUP-component to upload files. Now as default the uploaded file gets uploaded on their server.
Can anyone tell me if it is possible to get the uploaded file to be uploaded somewhere else, for example to my local machine or to my own server....
Here is the code i am using:
<% @ LANGUAGE = VBSCRIPT %>
<html>
<body>
<%
set upl = Server.CreateObject("SoftArtisans.FileUp")
' name the path, the file should be placed in
' - here is used the actual path (.)
upl.Path = Server.MapPath(".")
if (upl.IsEmpty) then
Response.write "<p>error: file is empty or do not exist
!</p>"
elseif (upl.ContentDisposition <> "form-data") then
Response.write "<p>error: Upload failed!</p>"
else
Response.write "<p>file is now uploaded.</p>"
on error resume next
' save the uploaded file on the isp server
upl.Save
end if
%>
</body>
</html>