Hey Jens,
C# code:
string saveToFolder = "savedFiles"
private void Page_Load(object sender, System.EventArgs e)
{
HttpFileCollection uploadedFiles = Request.Files;
string Path = Server.MapPath(saveToFolder);
for(int i = 0 ; i < uploadedFiles.Count ; i++)
{
HttpPostedFile F = uploadedFiles[i];
if(uploadedFiles[i] != null && F.ContentLength > 0)
{
string newName =
F.FileName.Substring(F.FileName.LastIndexOf("\\") + 1);
F.SaveAs(Path + "/" + newName);
}
}
}
Cheers,
Simon Barber
Message: 9
Date: Fri, 21 Oct 2005 11:11:26 +1300
From: "Campbell Anderson" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Flash 8 upload with c#
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1
Yeah dude, does your existing c# website have upload already built in or
do you need a page from scratch?
Campbell
>
> I need to use the Flash 8 upload functionality with a c# ASP.NET
serverside
> script - I know how to do it with php, but c# seems complex. Does anybody
> have scripts or experience with that?
>
> Please contact me offlist:
> [EMAIL PROTECTED]
>
> Thanks!
> Jens
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders