[+] Optimize upload photo

This commit is contained in:
Azalea
2024-03-05 17:56:16 -05:00
parent b9c063c41e
commit c9ac38de01
8 changed files with 165 additions and 172 deletions

View File

@@ -62,12 +62,14 @@ game.ongeki.rival.rivals-max-count=10
## Maimai DX
## Allow users take photo as their avatar/portrait photo.
game.maimai2.userPhoto.enable=true
## Specify folder path that user portrait photo and its (.json) data save to.
game.maimai2.userPhoto.picSavePath=data/userPhoto
## When uploading user portraits, limit the divMaxLength parameter. 1 divLength is about equal to the file size of 10kb.
## The default value is 32 (320kb), and the minimum value is 1 (10kb)
game.maimai2.userPhoto.divMaxLength=32
## User upload saving paths
paths.mai2-plays=data/upload/mai2/plays
paths.mai2-portrait=data/upload/mai2/portrait
paths.aqua-net-portrait=data/upload/net/portrait
## Logging
spring.servlet.multipart.max-file-size=10MB