Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v0.8.11
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶ added in v0.8.11
func (*Controller) DeleteImage ¶ added in v0.8.11
func (s *Controller) DeleteImage(c *fiber.Ctx) error
func (*Controller) UploadImage ¶ added in v0.8.11
func (s *Controller) UploadImage(c *fiber.Ctx) error
UploadImage takes the nickname of the uploader (always), image type: "profile", "banner", "album_cover" image type is used to construct the image path. The image is saved to the filesystem, and the path is saved to the database. This handler returns the ID of the image in the database. When a profile picture/banner upload is requested, it still needs to be confirmed by the user. INFO: currently supported arguments for imageType: "profile", "album_cover"
Click to show internal directories.
Click to hide internal directories.