<%@ Page Title="Max File Count" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" %>
<%@ Register Assembly="AjaxUploader" Namespace="AjaxUploader.Controls" TagPrefix="au" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">Max File Count - AjaxUploader v5.0 Demos</asp:Content>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderTitle" runat="server">Maximum File Count</asp:Content>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

<div class="demo-card">
    <div class="demo-card-header">Maximum File Count</div>
    <div class="demo-card-body">
        <p class="demo-description">
            Limit the number of files users can upload using <code>MaxFileCount</code>.
            Once the limit is reached, additional files are rejected.
        </p>

        <h6>Maximum 3 Files</h6>
        <au:AjaxFileUpload ID="Uploader1" runat="server"
            AllowMultiple="true"
            MaxFileCount="3"
            ButtonText="Select Files (max 3)"
            AutoUpload="true"
            ShowProgress="true" />

        <div class="code-panel">
            <pre><code>&lt;au:AjaxFileUpload ID="Uploader1" runat="server"
    AllowMultiple="true"
    MaxFileCount="3"
    ButtonText="Select Files (max 3)"
    AutoUpload="true"
    ShowProgress="true" /&gt;</code></pre>
        </div>

        <p class="mt-3 text-muted">
            Try selecting more than 3 files to see the limit enforced.
        </p>
    </div>
</div>

</asp:Content>
