Valid file
A supported file under 2 MB becomes ready to upload.
This demo page is designed for practicing file inputs, drag and drop uploads, file type validation, size validation, selected file summaries, simulated upload progress, success states, error states, and file removal.
Upload Practice
Start by choosing a valid file. The page will validate file type and size before allowing the simulated upload.
Drop your file here
Or use the file picker below.
Allowed files: PDF, PNG, JPG, TXT, CSV. Max size: 2 MB.
Validation Rules
Valid file
A supported file under 2 MB becomes ready to upload.
Invalid type
Unsupported extensions show a validation error.
Large file
Files over 2 MB show a size validation error.
Scenarios
Select valid file from file input
Validate selected file name
Validate selected file size
Validate selected file extension
Upload valid file successfully
Validate upload progress reaches 100%
Validate upload success message
Reject invalid file type
Reject file larger than 2 MB
Remove selected file
Validate empty state after removing file
Upload file using drag and drop