Skip to content

Commit 6cb9097

Browse files
committedMar 10, 2025
inputFile: add UseChunk api
1 parent 345e5d7 commit 6cb9097

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎internal/comp/inputFile.go

+5
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ func (fc InputFile) DownloadUrl(value string) InputFile {
137137
return fc.set("downloadUrl", value)
138138
}
139139

140+
// UseChunk sets whether to use chunk upload. true | false | "auto"
141+
func (fc InputFile) UseChunk(value any) InputFile {
142+
return fc.set("useChunk", value)
143+
}
144+
140145
// Drag sets whether drag-and-drop upload is enabled.
141146
func (fc InputFile) Drag(value bool) InputFile {
142147
return fc.set("drag", value)

0 commit comments

Comments
 (0)