Hi,
In ASP.NET you can upload a file using the File control. Add a File control
from the HTML controls toolbox if using VS.NET or manually with the code:
<INPUT id="File1" type="file" name="File1" runat="server">
Now in CodeBehind you can use the File1.PostedFile on for example
a btnUpload click event like this:
private void btnUpload_Click(object sender, System.EventArgs e)
{
if(File1.PostedFile != null)
File1.PostedFile.SaveAs(@"c:\uploadfolder\data.txt ");
}
Note that you must have write privileges to the folder you upload to set
properly for the user that runs the ASP.NET app.
Good luck!
/Emil
"Alex" <bo*****@kaid4.com.pt> wrote in message
news:0a****************************@phx.gbl...
Hi there!
I'd like o k'now how to make un upload of a certain file
to disk in ASP.
Thank you for your time