MCPcopy Create free account
hub / github.com/convox/rack / FilesUpload

Method FilesUpload

pkg/api/controllers.go:526–541  ·  view source on GitHub ↗
(c *stdapi.Context)

Source from the content-addressed store, hash-verified

524}
525
526func (s *Server) FilesUpload(c *stdapi.Context) error {
527 if err := s.hook("FilesUploadValidate", c); err != nil {
528 return err
529 }
530
531 app := c.Var("app")
532 pid := c.Var("pid")
533 r := c
534
535 err := s.provider(c).WithContext(c.Context()).FilesUpload(app, pid, r)
536 if err != nil {
537 return err
538 }
539
540 return c.RenderOK()
541}
542
543func (s *Server) Initialize(c *stdapi.Context) error {
544 return stdapi.Errorf(404, "not available via api")

Callers

nothing calls this directly

Calls 5

hookMethod · 0.95
providerMethod · 0.95
ContextMethod · 0.80
FilesUploadMethod · 0.65
WithContextMethod · 0.65

Tested by

no test coverage detected