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

RadUpload and RadProgressArea not working as expected Need Help - Urgent

3 Answers 63 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Shubh
Top achievements
Rank 1
Shubh asked on 21 Feb 2011, 05:49 PM
Hi All,
To start with I have a page with RadUpload control alongwith RadProgressArea,one listbox and three asp buttons(Named Add to Upload,Remove Selected,Remove All.These are not link buttons but asp buttons).Once the user clicks on Add to Upload button I need to add the uploaded file into the list box.
I have the following specific requirement with regards to the RadUpload control:
File size more than 150 MB shouldnot be allowed to get uploaded (that means progress bar should not be shown when the file size is more than 150 MB and a popup message with the error should be shown)
Now  I am facing the following issues:
1. Whenever I select a file and click on any of these above mentioned buttons I am getting the Progress bar which is not the expected behavior. I just want the progress bar to appear once only when Add to Upload button is clicked. I have made the property UseSubmitBehavior  for all other buttons as false as mentioned in this link:http://www.telerik.com/help/aspnet-ajax/upload_howtopreventupload.html but of no use.

2.To my surprise I am also getting the progress bar if the uploaded file is more than 150 MB although I have set MaxFileSize=157286400 which means 150MB but the uploader is not uploading it instead I want to show an error message box to the user and the user shouldnot have to wait for a long time.

Please telerik support team respond me with a detailed code snippet asap since its very urgent.

Note: I cannot use jquery or RadScriptManager functions so I need to use only javascript and server side methods(I am using ASP.Net 2.0 framework)
Regards,
Shubh
 

3 Answers, 1 is accepted

Sort by
0
Shubh
Top achievements
Rank 1
answered on 21 Feb 2011, 05:54 PM
Uploading a file into the listbox means I am adding the filenames only to the listbox.
0
Shubh
Top achievements
Rank 1
answered on 22 Feb 2011, 05:30 AM
Please help.....
0
Helen
Telerik team
answered on 24 Feb 2011, 11:50 AM
Hi Shubh,

Did  you review the AsyncUpload's Validation demo?
You may also use the OnFileUploaded server-side event to add the uploaded files to the ListBox.

Regards,
Helen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Upload (Obsolete)
Asked by
Shubh
Top achievements
Rank 1
Answers by
Shubh
Top achievements
Rank 1
Helen
Telerik team
Share this question
or