Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping file upload control data on postback
Message
From
22/11/2011 08:38:15
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01528951
Message ID:
01529478
Views:
42
>Well files can only be uploaded once. They don't 'post back'. So once you've uploaded it one way you have to reselect (unless you use some AJAX control).
>
>It's easy enough to validate file uploads seperately though from the rest of the input and then store some information about the file in the database. That way when the form proper is submitted you can do your validations as needed.

That would be another way.

But, if the submit fails at all, no trace of the file should remain on the server. So, this is why I prefer to have them all in one form.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform