s3

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 14 Imported by: 0

README

How to Use

package main

import (
	"github.com/pocketbase/pocketbase"
	s3 "github.com/shynome/pocketbase-s3"
)

func initApp(app *pocketbase.PocketBase) {
	s3.FixObjectHeaders(app)
	s3.ProtectFile(app)
}

Break

pocketbase-v0.22.7 have changed s3 implement, must upgrade v0.1.0 version to follow change

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixObjectHeaders

func FixObjectHeaders(app *pocketbase.PocketBase, tags ...string)

FixObjectHeaders add ContentDisposition header, if file is protected header CacheControl: no-cache also be added

func ProtectFile

func ProtectFile(app *pocketbase.PocketBase, tags ...string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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