Completed
Last Updated: 03 Jul 2017 15:20 by Marlian
ADMIN
Hristo Valyavicharski
Created on: 03 Feb 2014 16:31
Category: UI for ASP.NET AJAX
Type: Feature Request
21
IMPROVE: PostbackTriggers functionality
UploadedFiles collection needs to be available across post backs.
7 comments
Marlian
Posted on: 03 Jul 2017 15:20
This isn't the fix that was actually requested.  The fix that was actually requested was to access the uploaded files in code behind, BEFORE the PostbackTrigger control is fired.  This would allow us to execute logic before actually saving anything UNTIL the PostbackTrigger is hit.  This is a client side only feature.
rd
Posted on: 20 Oct 2016 16:47
totally agree with Massimiliano Mattei. My user control is responsible to validate file submission logic. I don't see in a good way to validate that logic outside that user control.
Jorge
Posted on: 01 Jun 2016 21:13
Needed for example when you have a reset button and the user never submits.  I only want to maintain the files they will ultimately get submitted.  When the user resets the form those files should and need to be deleted.  No since in waiting 20 minutes, or 4 hours.
ADMIN
Genady Sergeev
Posted on: 11 Sep 2015 09:36
The feature is implemented and you can take a look at it at the online demo: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/persistuploadedfiles/defaultcs.aspx
Steve
Posted on: 11 Jan 2015 23:45
Was this request ever implemented?  I have a similar user scenario.  I have a file import feature that allows the user to upload a tab-delimited, comma-separated, or Excel file.  The user is allowed to map their file's columns to our standard database fields.  The user is also allowed to skip 0 or more "header" lines in the file.  Therefore, once the file is uploaded, we preview the first several lines and show these lines to the user.  If the user changes the number of header lines, then I would like to preview the file again with the new setting, to show what effect their choice had.  Once they have everything the way they want, then they click the final submit button, which triggers the actual import process into our database.  I need to be able to access the UploadedFiles collection across several postbacks, until they click the final submit button.  I am currently using the 2014.1.403.40 version, thank you.
Mathieu
Posted on: 19 Mar 2014 15:07
I agree, we shouldn't have to use complex workarounds for every pages with file upload...
Massimiliano
Posted on: 03 Feb 2014 17:02
Good idea. No reason to prevent accessing the UploadedFiles collection at any time (on a button click, dropdowlist change, file upload, whatever...).
Firing the server side event OnFileUploaded and deleting the UploadedFiles colletion ONLY if the postback was triggered from controls in the PostbackTriggers is ok and it's a "genial" implementation, but this shouldn't prevent us from accessing UploadedFiles collection at any time.