Browse Source

Fix missing URL for uploading non image files

Chenyang 1 năm trước cách đây
mục cha
commit
5180d67e58
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      media/upload.go

+ 1 - 1
media/upload.go

@@ -77,7 +77,7 @@ func cropField(field *schema.Field, db *gorm.DB) (cropped bool, err error) {
 	// Save File
 	if !handled {
 		err = media.Store(media.URL(), option, mediaFile)
-		return false, err
+		return true, err
 	}
 
 	return true, nil