mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 20:21:47 +01:00 
			
		
		
		
	Fix incorrect default value of [attachment].MAX_SIZE (#28373)
				
					
				
			This commit is contained in:
		
							parent
							
								
									ec90ee61ef
								
							
						
					
					
						commit
						c1b86ecdab
					
				| @ -26,7 +26,7 @@ func loadAttachmentFrom(rootCfg ConfigProvider) (err error) { | ||||
| 	} | ||||
| 
 | ||||
| 	Attachment.AllowedTypes = sec.Key("ALLOWED_TYPES").MustString(".csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip") | ||||
| 	Attachment.MaxSize = sec.Key("MAX_SIZE").MustInt64(4) | ||||
| 	Attachment.MaxSize = sec.Key("MAX_SIZE").MustInt64(2048) | ||||
| 	Attachment.MaxFiles = sec.Key("MAX_FILES").MustInt(5) | ||||
| 	Attachment.Enabled = sec.Key("ENABLED").MustBool(true) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user