UploadedFiles.Count always 0 on forced postback

Thread is closed for posting
2 posts, 0 answers
  1. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 27 Nov 2012 Link to this post

    Hi,

    I've been using the Upload contol for some time to add attachments to knowledgebase articles. Much of the page is ajaxified, and the I've been using (successfully in the past), the OnClientFileSelected event to force a postback which then does something serverside with the uploaded file.

    I am now using Q1 2012 controls and this functionality no longer works. I've read the articles explaining that a full postback is required.. and this is happening, yet serverside there never appears to be anything in the UploadedFiles collection.

    Clientside code calls a JS function which performs a manual postback using a hidden control ID as the argument.

    Serverside RaisePostBackEvent correctly responds to this postback, at which point the UploadedFiles collection is still empty. previously this was working.

    Any pointers?
    Thanks.
  2. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 30 Nov 2012 Link to this post

    Hello John,

     
    The issue sounds quite unusual because the same was working properly at our on-line demo and there is no such known issue or breaking change in the control. 

    One possible workaround it to start using RadAsyncUpload that the control we recommend when working with Ajax as well. 

    If you want to preserve using RadUpload and you still can't fix the issue please share the code that will let us reproduce the issue locally and be more helpful.

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top