method

App.UploadForIdentity

func (application *App) UploadForIdentity( ctx context.Context, collection string, input UploadInput, identity *AuthIdentity, ) (store.Document, error)

Store a file for one exact authenticated collection identity.

Source core/uploads.go:166

@param ctx
The ctx value.
@param collection
The collection value.
@param input
The input value.
@param identity
The identity value.
@returns
The declared result.

Related types

  • App

    A resolved application bound to operation services.

  • UploadInput

    File bytes and application-owned metadata for one upload.

  • AuthIdentity

    An exact authenticated collection and actor document.

  • Document

    A stored document with status and version metadata.