In the samples package there is a VB.Net and C# demo for accepting uploads.
If you are using Session or FormsAuthentication you need to look closely at the global.asax file and make sure you understand how it works. Because SWFUpload (Flash) doesn't send the Session or Auth Ticket cookies we make SWFUpload send them manually as POST (Request.Form) values and Global.asax intercepts them and manually restores the session and auth cookies before your page executes.
The upload.aspx should show you how to access the file (Request.Files) and then you handle it like you would any upload except you aren't working in a PostBack and any output from upload.aspx is sent to SWFUpload instead of being displayed on a page.
Use caution with UpdatePanels, since .Net wipes out there contents and replaces it with new content from the server you cannot place SWFUpload inside the panel since it, too, will be wiped out and reloaded.
March 5, 2010 - 10:36am
In the samples package there is a VB.Net and C# demo for accepting uploads.
If you are using Session or FormsAuthentication you need to look closely at the global.asax file and make sure you understand how it works. Because SWFUpload (Flash) doesn't send the Session or Auth Ticket cookies we make SWFUpload send them manually as POST (Request.Form) values and Global.asax intercepts them and manually restores the session and auth cookies before your page executes.
The upload.aspx should show you how to access the file (Request.Files) and then you handle it like you would any upload except you aren't working in a PostBack and any output from upload.aspx is sent to SWFUpload instead of being displayed on a page.
Use caution with UpdatePanels, since .Net wipes out there contents and replaces it with new content from the server you cannot place SWFUpload inside the panel since it, too, will be wiped out and reloaded.