VintaSoft Twain .NET SDK Discussions
Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.
Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions
string fn = new Random().Next(0, 100)+"-test.jpg";
string fileName = Server.MapPath("~/Images/" + fn);
Request.Files[0].SaveAs(fileName);
fn = new Random().Next(0, 100) + "-test.jpg";
fileName = Server.MapPath("~/Images/" + fn);
Request.Files[1].SaveAs(fileName);
Request.Files[0] has no error but Request.Files[1] get an error ... it seems WCF Service send only 1 file to upload
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Files.Count == 0)
{
return;
}
// save the file to the server
string fileName = Server.MapPath("Images/demo.jpg");
Request.Files[0].SaveAs(fileName);
// return the path to this file
Response.Clear();
Response.Write("http://" + Request.Url.Authority + Request.RawUrl.Substring(0, Request.RawUrl.LastIndexOf("/")) + "/Images/demo.jpg");
Response.Flush();
}
}
its only hendle Request.Files[0] and if i try to make it Request.Files[1] it gives an error