One approach could be to define an Application Variable
where to store the count of users uploading files. Its value will be changed via Web Service. For example:
defines three Web methods
Then handle OnClientFileUploading
event and call GetUploaders
() to see if the user is allowed to start uploading. If he is allowed we call IncreaseUploaders
() to increase the number of the uploaders, if he is not then we cancel file uploading.
Finally when file is uploaded DecreaseUploaders
() is called in the OnClientFileUploaded
event. For your reference I'm attaching small sample.
Regarding your second question uploading could be delayed as you call GetUploaders
() in every few seconds and don't permit uploading until there are less than 10 uploading users.
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