Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticController ¶
type StaticController struct {
// contains filtered or unexported fields
}
func NewStaticController ¶
func (*StaticController) DeleteImage ¶
func (s *StaticController) DeleteImage(c *fiber.Ctx) error
func (*StaticController) UploadImage ¶
func (s *StaticController) 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. WARN: this is not concurrency-safe yet
Click to show internal directories.
Click to hide internal directories.