My experiences with .NET
Thursday, March 31, 2005
 
Uploading from .NET
I recently had to rewrote the uploading module that I wrote in Java to work in Servlet to work in .NET environment. I google and found several interesting articles and they all pindown to two things. First, I needed a HTML portion, which required a <input> tag in order for user to select the file.
<input id="myFile" type="file" runat="server">
And then, I had to added following line to save the file to the Web Server.
myFile.PostedFile.SaveAs("DestinationPath")

You can find more about this by clicking here.
Comments: Post a Comment

<< Home

Powered by Blogger