|
Our ASPX Page simply creates an Upload object and saves the
uploaded file out into the 'write' directory as 'myupload.dat'.
ABCUpload automatically detects that the location you're
specifying is a URL and automatically resolves it into a file path.
However you can equally well use an absolute file path if you
prefer.
<%@ Import
Namespace="WebSupergoo.ABCUpload6" %>
<%
Upload theUpload = new Upload();
theUpload.Files["filefield"].SaveAs("write/myupload.dat");
%>
<html>
<body>
File uploaded...
</body>
<%@ Import
Namespace="WebSupergoo.ABCUpload6" %>
<%
Dim theUpload As Upload = New Upload()
theUpload.Files("filefield").SaveAs("write/myupload.dat")
%>
<html>
<body>
File uploaded...
</body>
|