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

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">Min File Size - AjaxUploader v5.0 Demos</asp:Content>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderTitle" runat="server">Minimum File Size</asp:Content>

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

<div class="demo-card">
    <div class="demo-card-header">Minimum File Size</div>
    <div class="demo-card-body">
        <p class="demo-description">
            Enforce a minimum file size using <code>MinFileSize</code> to reject files that are
            too small (e.g., empty or placeholder files).
        </p>

        <h6>Min 10 KB</h6>
        <au:AjaxFileUpload ID="Uploader1" runat="server"
            MinFileSize="10KB"
            ButtonText="Select File (min 10KB)"
            AutoUpload="true"
            ShowProgress="true" />

        <div class="code-panel">
            <pre><code>&lt;au:AjaxFileUpload ID="Uploader1" runat="server"
    MinFileSize="10KB"
    ButtonText="Select File (min 10KB)"
    AutoUpload="true"
    ShowProgress="true" /&gt;</code></pre>
        </div>

        <p class="mt-3 text-muted">
            Try selecting a very small file (under 10 KB) to see the validation error.
        </p>
    </div>
</div>

</asp:Content>
