<%@ Page Title="Max 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">Max File Size - AjaxUploader v5.2 Demos</asp:Content>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderTitle" runat="server">Maximum File Size</asp:Content> 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> 
<div class="demo-card"> <div class="demo-card-header">Maximum File Size</div> <div class="demo-card-body"> <p class="demo-description"> Limit upload file size with <code>MaxFileSize</code>. Supports human-readable values
 like "2MB", "500KB", or "1GB". Files exceeding the limit are rejected before upload.
 </p> <h6>Max 5 MB</h6> <au:AjaxFileUpload ID="Uploader1" runat="server"
 MaxFileSize="5MB"
 ButtonText="Select File (max 5MB)"
 AutoUpload="true"
 ShowProgress="true" /> <div class="code-panel"> <pre><code>&lt;au:AjaxFileUpload ID="Uploader1" runat="server"
 MaxFileSize="5MB"
 ButtonText="Select File (max 5MB)"
 AutoUpload="true"
 ShowProgress="true" /&gt;</code></pre> </div> <p class="mt-3 text-muted"> Try uploading a file larger than 5 MB to see the size validation in action.
 </p> </div>
</div> 
</asp:Content>
