Upload a file w/o a user interface?

  • Thread starter Thread starter vbMark
  • Start date Start date
V

vbMark

From the URL Query String I'll get the file path like this:

private void Page_Load(object sender, System.EventArgs e)
{
string sFilePath = Request.QueryString["FilePath"];

}

Now that I have the path how do I upload the file to the server?

Thanks!
 
You don't have the security rights to upload a file at will without the
user's interaction. If you did, this would be a major security hole.
They have to select the file to be uploaded via an html file input control.
 
Makes sense.

You don't have the security rights to upload a file at will without
the user's interaction. If you did, this would be a major security
hole. They have to select the file to be uploaded via an html file
input control.

vbMark said:
From the URL Query String I'll get the file path like this:

private void Page_Load(object sender, System.EventArgs e)
{
string sFilePath = Request.QueryString["FilePath"];

}

Now that I have the path how do I upload the file to the server?

Thanks!
 
Back
Top