This is a migrated thread and some comments may be shown as answers.
MaxFileInputsCount not restricting while MultipleFileSelection
10 Answers 124 Views
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 11 Oct 2010, 10:21 AM
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?


<
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

Sort by
0
Genady Sergeev
Telerik team
answered on 14 Oct 2010, 12:25 PM
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
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
0
Genady Sergeev
Telerik team
answered on 08 Dec 2010, 11:27 AM
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
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.
0
Genady Sergeev
Telerik team
answered on 13 Dec 2010, 10:28 AM
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
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
Plamen
Telerik team
answered on 16 Jan 2013, 07:14 AM
Hi,

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. 

Regards,
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
Plamen
Telerik team
answered on 21 Feb 2013, 02:49 PM
Hello Dave,

 
Yes, indeed unfortunately this combination of properties is not supported scenario in RadAsyncUpload. 

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.
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.

<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 !!!
Asked by
Deepak
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
zozzancs
Top achievements
Rank 1
Chandrashekhar
Top achievements
Rank 1
Plamen
Telerik team
Dave
Top achievements
Rank 1
Kalpesh
Top achievements
Rank 1
Share this question
or