upload

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageUpload

type ImageUpload struct {
	// contains filtered or unexported fields
}

func (*ImageUpload) CleanupImageOnFailure

func (h *ImageUpload) CleanupImageOnFailure(imagePath string)

func (*ImageUpload) EnsureUploadDirectory

func (h *ImageUpload) EnsureUploadDirectory(uploadDir string) error

func (*ImageUpload) ProcessImageUpload

func (h *ImageUpload) ProcessImageUpload(c echo.Context, uploadDir string, file *multipart.FileHeader, isDocument bool) (string, error)

func (*ImageUpload) SaveUploadedFile

func (h *ImageUpload) SaveUploadedFile(file *multipart.FileHeader, dst string) error

type ImageUploads

type ImageUploads interface {
	EnsureUploadDirectory(uploadDir string) error
	ProcessImageUpload(c echo.Context, uploadDir string, file *multipart.FileHeader, isDocument bool) (string, error)
	CleanupImageOnFailure(imagePath string)
	SaveUploadedFile(file *multipart.FileHeader, dst string) error
}

func NewImageUpload

func NewImageUpload(logger logger.LoggerInterface) ImageUploads

Jump to

Keyboard shortcuts

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