Complete flow
The default surface supports mouse, keyboard, and drag-and-drop selection. Valid files enter a clear queue, where upload progress, success, errors, removal, and retry remain visible.
The default surface supports mouse, keyboard, and drag-and-drop selection. Valid files enter a clear queue, where upload progress, success, errors, removal, and retry remain visible.
Call SUpload.pick(options) without rendering an Upload component. It opens the native file picker and resolves with File or File[]; cancelling resolves undefined. Validation failures reject with UploadPickError, whose reason is type, size, limit, guard, or unsupported.
This API selects files only. Continue with your own request after the Promise resolves, or use the component when users need a visible queue, progress, removal, and retry flow.
Set mode="image" for image-only selection. list-type="card" and preview-fit control the visual queue without changing upload behavior.
Use automatic to start each accepted file immediately. A custom request reports progress through updateProgress; failed items keep an explicit retry action.
The trigger slot receives choose, dragging, and disabled, so branded entry points can reuse the same picker, validation, and drop behavior.
Use shape="square" to align the upload surface, queue, previews, and actions with the global square geometry.
File | File[] | nullStringStringStringFunctionFunctionFunctionBoolean