Assets · Components
AttachmentUpload
Native multipart upload preserving caller request identity and failure values.Public export
typescript
import { AttachmentUpload } from '@happyvertical/smrt-assets/svelte';- Import path
@happyvertical/smrt-assets/svelte- Props
- 21
- Props described
- 21 of 21
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
actionstringYesAuthorized endpoint; supplied by the consumer, never constructed here.idstringNoOptional stable form identity for enhancement.canUploadbooleanNoPresentation capability only. The endpoint must authorize each request.fileFieldstringNoFile input name, default file.showDescriptionbooleanNoShow the editable description; false omits its control and error. Defaults true.descriptionFieldstringNoDescription input name, default description.descriptionstringNoCaller-retained description, including values from rejected submissions.acceptstringNoNative accept hint; server must independently validate bytes and policy.helpstringNoCaller-localized allowed types/size/help. No upload policy is hardcoded.fileErrorstringNoCaller field-level file validation error.descriptionErrorstringNoCaller field-level description validation error.messagestringNoCaller server error or uncertain-outcome message.reselectFilebooleanNoRe-render recovery needs a new file selection; browsers cannot restore files.pendingbooleanNoPending caller request; disables submit without changing values.retryStatusFormRetryStatusNoOptional state from caller-owned smrt-ui/form-retry.hiddenFieldsreadonly AttachmentRequestField[]NoRequest/tenant/revision fields, kept verbatim and repeated as provided.intentFieldstringNoNative submitter name, default intent.intentstringNoNative submitter value, default upload.submitLabelstringNoOptional caller-localized upload label.childrenSnippetNoExtra consumer fields inside the multipart form.onsubmitHTMLFormAttributes['onsubmit']NoOptional enhancement; native navigation is the default.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.