Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 29, 2024
1 parent ed4a307 commit cf08f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/handlers/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func ViewUploadedImage() web.HandlerFunc {

// ValidateLogoUpload validates if logo upload is within allowed formats and size
func ValidateLogoUpload(c *web.Context) error {
contentType := c.Request.Header.Get("Content-Type")
contentType := c.Request.GetHeader("Content-Type")
if contentType != "image/png" && contentType != "image/jpeg" && contentType != "image/gif" && contentType != "image/svg+xml" {
return c.BadRequest(web.Map{
"message": "File format not supported. Upload only JPG, GIF, PNG or SVG files.",
Expand Down

0 comments on commit cf08f49

Please sign in to comment.