Min File Size
Reject files that are too small. Set a minimum file size to prevent empty or trivially small uploads.
What you should see: files under 10 KB are refused, which catches empty and truncated files before they are stored.
Drag & drop files here, or paste from clipboard
<core-upload asp-upload-url="/api/upload/upload"
asp-min-size="10KB"
asp-multiple="true"
asp-progress="true">
</core-upload> A floor as well as a ceiling
asp-min-size rejects files below the size you give, evaluated in the browser so nothing is transferred. It accepts a readable string such as '1KB' as well as a byte count.
The accident it catches
Zero-byte and near-empty files are almost always a failure upstream — an export that died, a capture that was interrupted, a placeholder that never got filled in. Accepting them means the problem appears much later, in whatever tries to process the file, where it is far harder to trace back.
The check runs client-side, so it saves the user a pointless upload rather than enforcing anything. The server applies its own limits from
CoreUploadOptions.