upload

package
v0.45.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUploadOptions

func BuildUploadOptions(ctx context.Context, f *pkgobjects.File) *pkgobjects.UploadOptions

BuildUploadOptions prepares upload options enriched with provider hints and ensures the file has a detected content type when one was not provided by the client.

func HandleRollback added in v0.39.2

func HandleRollback(ctx context.Context, svc *objects.Service, files []pkgobjects.File)

HandleRollback removes uploaded files from storage in case of an error during processing the rest of the request.

func HandleUploads

func HandleUploads(ctx context.Context, svc *objects.Service, files []pkgobjects.File) (context.Context, []pkgobjects.File, error)

HandleUploads persists metadata, uploads files to storage, and enriches the request context with uploaded file details.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL