Inline Upload
A compact inline uploader that fits within a line of text or a form row.
What you should see: the control collapsed onto a single line so it can sit next to a label in a form row without disturbing the layout.
Drag & drop files here, or paste from clipboard
<div class="flex items-center gap-3">
<label>Attachment:</label>
<core-upload asp-upload-url="/api/upload/upload"
asp-auto-upload="true"
asp-progress="true"
asp-inline="true"
asp-button-text="Choose File">
</core-upload>
</div> Sitting inside a form row
asp-inline renders the uploader in a horizontal layout that fits a form row rather than claiming a block of its own. It reads as a field alongside the others instead of a separate widget.
Guard the submit button
Uploads run in the background, and nothing stops the user pressing submit while files are still transferring. Disable submit until the queue is idle, or check the state in the handler — a record saved without an attachment the user believed they added is a failure they discover much later.