MaxFileInputsCount not restricting while MultipleFileSelection

11 posts, 0 answers
  1. Deepak
    Deepak avatar
    2 posts
    Member since:
    Sep 2010

    Posted 11 Oct 2010 Link to this post

    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
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 14 Oct 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. zozzancs
    zozzancs avatar
    24 posts
    Member since:
    Dec 2009

    Posted 02 Dec 2010 Link to this post

    Hi Genady,

    Q3 is released, but as I tried, the MaxFileInputCount property is still ignored.

    Any ideas for a workaround?

    Thank You!

    Zoltan
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 08 Dec 2010 Link to this post

    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.
  6. zozzancs
    zozzancs avatar
    24 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2010 Link to this post

    "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.
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 13 Dec 2010 Link to this post

    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.
  8. Chandrashekhar
    Chandrashekhar avatar
    4 posts
    Member since:
    Dec 2012

    Posted 14 Jan 2013 Link to this post

    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.
  9. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 16 Jan 2013 Link to this post

    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.
  10. Dave
    Dave avatar
    8 posts
    Member since:
    Aug 2011

    Posted 18 Feb 2013 Link to this post

    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?
  11. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 21 Feb 2013 Link to this post

    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.
  12. Kalpesh
    Kalpesh avatar
    8 posts
    Member since:
    Nov 2013

    Posted 13 Dec 2013 Link to this post

    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 !!!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017