mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: File size exceeds allowed limit of 0 MiB (#1664)
fix: File size exceeds allowed limit of 0 MiB This could happen in databases without "max-upload-size-mib" setting. Now, both the front-end and the back-end will start with a default limit of 32 MiB, even if the key is absent. It is still possible to disable uploads by setting the value to 0.
This commit is contained in:
@ -44,7 +44,7 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
|
||||
AllowSignUp: false,
|
||||
IgnoreUpgrade: false,
|
||||
DisablePublicMemos: false,
|
||||
MaxUploadSizeMiB: 32,
|
||||
MaxUploadSizeMiB: 32, // this is the frontend default value
|
||||
AdditionalStyle: "",
|
||||
AdditionalScript: "",
|
||||
CustomizedProfile: api.CustomizedProfile{
|
||||
|
Reference in New Issue
Block a user