2023-04-21 03:03:02 +00:00
|
|
|
package sriracha
|
|
|
|
|
|
|
|
import "io"
|
|
|
|
|
2023-04-30 03:17:56 +00:00
|
|
|
// ExtensionAttach defines the interface for extensions that handle attaching
|
|
|
|
// files when creating a post.
|
2023-04-21 03:03:02 +00:00
|
|
|
type ExtensionAttach interface {
|
|
|
|
Extension
|
|
|
|
|
|
|
|
// Attach handles an uploaded file.
|
|
|
|
Attach(file io.Reader, size int64, mime string) (*Attachment, error)
|
|
|
|
}
|