upload

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoFile

type InfoFile struct {
	ID             string           `json:"ID"`
	Size           int              `json:"Size"`
	SizeIsDeferred bool             `json:"SizeIsDeferred"`
	Offset         int              `json:"Offset"`
	MetaData       InfoFileMetaData `json:"MetaData"`
	IsPartial      bool             `json:"IsPartial"`
	IsFinal        bool             `json:"IsFinal"`
	PartialUploads interface{}      `json:"PartialUploads"`
	Storage        InfoFileStorage  `json:"Storage"`
}

type InfoFileMetaData

type InfoFileMetaData struct {
	Filename     string `json:"filename"`
	Filetype     string `json:"filetype"`
	Name         string `json:"name"`
	RelativePath string `json:"relativePath"`
	Type         string `json:"type"`
}

type InfoFileStorage

type InfoFileStorage struct {
	InfoPath string `json:"InfoPath"`
	Path     string `json:"Path"`
	Type     string `json:"Type"`
}

type Uploader

type Uploader struct {
	Root *os.Root
}

func New

func New(dir string) (*Uploader, error)

func (*Uploader) CreateFile

func (u *Uploader) CreateFile(id string, filename string, blob []byte) (string, error)

func (*Uploader) DeleteFile

func (u *Uploader) DeleteFile(id, name string) error

func (*Uploader) File

func (u *Uploader) File(id, name string) (*os.File, string, int64, error)

func (*Uploader) Paths

func (u *Uploader) Paths(id string, filename string) (infoFilePath, filePath string)

Jump to

Keyboard shortcuts

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