MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / Path

Method Path

pkg/modules/api/formdata.go:320–322  ·  view source on GitHub ↗

Path binds the absolute path of a form data file to a string variable. var path string ctx.FormData().Path("foo.txt", &path)

(filename string, target *string)

Source from the content-addressed store, hash-verified

318//
319// ctx.FormData().Path("foo.txt", &path)
320func (form *FormData) Path(filename string, target *string) *FormData {
321 return form.path(filename, target)
322}
323
324// MandatoryPath binds the absolute path of a form data file to a string
325// variable. It populates an error if the file does not exist.

Callers 1

TestFormData_PathFunction · 0.80

Calls 1

pathMethod · 0.95

Tested by 1

TestFormData_PathFunction · 0.64