Hi,
Assembly Version: 2010.2.826.35
1. I want to restrict user to upload max 5 files.That works fine if single file selected 5 times which makes file selection control hidden.
But in MultipleFileSelection scenario it allows user to select any number of files ignoring MaxFileInputCount = 5.How to handle this?
2.Other application requirement is to disable Upload control for file selection/deletion while file upload is in progress. Can any one tell how to achieve that?
Thanks
Deepak Dhirhe
Assembly Version: 2010.2.826.35
1. I want to restrict user to upload max 5 files.That works fine if single file selected 5 times which makes file selection control hidden.
But in MultipleFileSelection scenario it allows user to select any number of files ignoring MaxFileInputCount = 5.How to handle this?
<
telerik:RadAsyncUpload
ID
=
"radUpload"
runat
=
"server"
MultipleFileSelection
=
"Automatic"
AllowedFileExtensions
=
".pdf"
MaxFileInputsCount
=
"5"
Localization-Select
=
"Browse"
Localization-Remove
=
"Delete Document"
ReadOnlyFileInputs
=
"true"
OnClientValidationFailed
=
"validationFailed"
TemporaryFileExpiration
=
"5"
OnClientFileSelected
=
"fileSelected"
OnClientDeleting
=
"fileDelete"
OnClientFileUploaded
=
"fileUploaded"
></
telerik:RadAsyncUpload
>
2.Other application requirement is to disable Upload control for file selection/deletion while file upload is in progress. Can any one tell how to achieve that?
Thanks
Deepak Dhirhe
10 Answers, 1 is accepted
0
Hi Deepak,
With the current version of RadAsyncUpload none of these is possible. The good news is that we are aware of these problems and are working on fixing them. The upcoming Q3 release of RadAsyncUpload will have this issues resolved.
Regards,
Genady Sergeev
the Telerik team
With the current version of RadAsyncUpload none of these is possible. The good news is that we are aware of these problems and are working on fixing them. The upcoming Q3 release of RadAsyncUpload will have this issues resolved.
Regards,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

zozzancs
Top achievements
Rank 1
answered on 02 Dec 2010, 05:15 PM
Hi Genady,
Q3 is released, but as I tried, the MaxFileInputCount property is still ignored.
Any ideas for a workaround?
Thank You!
Zoltan
Q3 is released, but as I tried, the MaxFileInputCount property is still ignored.
Any ideas for a workaround?
Thank You!
Zoltan
0
Hello zozzancs,
It turned out that this is not that trivial to be implemented. There is no api provided by Flash/Silverlight that allows us to limit the number of files to be selected in the Open File dialog, so the problem should be solved in other way. The first one is not to use MaximumFileInputs together with multiple selection. The other way around is to slice the selected files collection to the maxim quota allowed. However, we are not quite sure how correct that decision is. Do you have any suggestion on the matter?
Apart from this, I believe that the best way around is not to use multiple selection should MaxFileInputs quota be observed.
All the best,
Genady Sergeev
the Telerik team
It turned out that this is not that trivial to be implemented. There is no api provided by Flash/Silverlight that allows us to limit the number of files to be selected in the Open File dialog, so the problem should be solved in other way. The first one is not to use MaximumFileInputs together with multiple selection. The other way around is to slice the selected files collection to the maxim quota allowed. However, we are not quite sure how correct that decision is. Do you have any suggestion on the matter?
Apart from this, I believe that the best way around is not to use multiple selection should MaxFileInputs quota be observed.
All the best,
Genady Sergeev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

zozzancs
Top achievements
Rank 1
answered on 08 Dec 2010, 01:06 PM
"It turned out that this is not that trivial to be implemented. There is
no api provided by Flash/Silverlight that allows us to limit the number
of files to be selected in the Open File dialog"
Oh, yes. Just as I thought :S
Another way could be for Telerik I guess, that you don't limit the files you can select in the open file dialog - since you can not.
But you can somehow show at the upload file list, that there are more files selected than expected. For example you select 8 files when the maximum allowed is 5, than the last 3 files should be marked as "invalid" - just as you mark the files with not allowed extensions at 2010 Q2 release. (At 2010 Q3 as far as I know you don't mark the not allowed file extensions, since there are no such files, because the open dialog only allows to select files with the allowed extensions.)
So, my suggestion is to mark the files that are over the limit with some sign as "invalid", and do not upload them.
Oh, yes. Just as I thought :S
Another way could be for Telerik I guess, that you don't limit the files you can select in the open file dialog - since you can not.
But you can somehow show at the upload file list, that there are more files selected than expected. For example you select 8 files when the maximum allowed is 5, than the last 3 files should be marked as "invalid" - just as you mark the files with not allowed extensions at 2010 Q2 release. (At 2010 Q3 as far as I know you don't mark the not allowed file extensions, since there are no such files, because the open dialog only allows to select files with the allowed extensions.)
So, my suggestion is to mark the files that are over the limit with some sign as "invalid", and do not upload them.
0
Hi zozzancs,
This indeed sounds reasonable. We will add the proposal into our PITS system and if there are other clients showing interest we will implement the feature. I've also updated your telerik points for the suggestion.
Best wishes,
Genady Sergeev
the Telerik team
This indeed sounds reasonable. We will add the proposal into our PITS system and if there are other clients showing interest we will implement the feature. I've also updated your telerik points for the suggestion.
Best wishes,
Genady Sergeev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Chandrashekhar
Top achievements
Rank 1
answered on 14 Jan 2013, 02:21 PM
Hi I am facing an issue with asyncupload.I set the max file count to 10. First time I am selecting 6 files then I am select 6 again.But asyncupload not throwing errormessage as the total file count exceeded 10.
0
Hi,
Plamen
the Telerik team
Currently setting MultipleFileSelection=Automatic and MaxFileInputsCount at the same time are not supported in the same scenario with RadAsyncUpload. Please excuse us for this limitation of our control.
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.
0
Dave
Top achievements
Rank 1
answered on 19 Feb 2013, 12:07 AM
Is there any progress being made on a good workaround? Does the api just have no way possible to detect the number of files selected?
0
Hello Dave,
Plamen
the Telerik team
Yes, indeed unfortunately this combination of properties is not supported scenario in RadAsyncUpload.
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.
0

Kalpesh
Top achievements
Rank 1
answered on 13 Dec 2013, 07:25 AM
Hi All,
I am using Telerik v4.0.30319 and this is working fine for me. Please see code below and attached snapshot for the same.
Enjoy !!!
I am using Telerik v4.0.30319 and this is working fine for me. Please see code below and attached snapshot for the same.
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
Height
=
"200px"
Width
=
"300px"
>
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"RadAsyncUpload2"
ManualUpload
=
"false"
MultipleFileSelection
=
"Automatic"
MaxFileInputsCount
=
"3"
TargetFolder
=
"UploadFiles"
/>
<
asp:Button
ID
=
"Button1"
runat
=
"server"
Text
=
"Button"
/>
</
telerik:RadAjaxPanel
>
Enjoy !!!