This is a migrated thread and some comments may be shown as answers.

UploadedFiles.Count always 0 on forced postback

1 Answer 37 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
jwhitley
Top achievements
Rank 1
jwhitley asked on 27 Nov 2012, 05:35 PM
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.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Nov 2012, 02:52 PM
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.
Tags
Upload (Obsolete)
Asked by
jwhitley
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or