Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认配置文件,配置文件File_SIZE_LIMIT数值很大,但是前端仍然只支持10M以下 #58

Closed
zhang-win opened this issue Mar 4, 2023 · 5 comments

Comments

@zhang-win
Copy link

配置文件未改

INSTALL=1.6
DEBUG=False
DATABASE_FILE=data/database.db
PORT=12345
DATA_ROOT=./data/static
LOCAL_ROOT=./data/local
STATIC_URL=/static
BANNERS=[{'text': 'FileCodeBox', 'url': 'https://github.com/vastsa/FileCodeBox', 'src': '/static/banners/img_1.png'}, {'text': 'LanBlog', 'url': 'https://www.lanol.cn', 'src': '/static/banners/img_2.png'}]
ENABLE_UPLOAD=True
MAX_DAYS=7
ERROR_COUNT=5
ERROR_MINUTE=5
UPLOAD_COUNT=60
UPLOAD_MINUTE=1
DELETE_EXPIRE_FILES_INTERVAL=10
ADMIN_ADDRESS=cf0b992541804edeb374d21401ea89b1
ADMIN_PASSWORD=ce106f234f4a4b07bc685ec228a48f3d
FILE_SIZE_LIMIT=10485760
TITLE=文件快递柜
DESCRIPTION=FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件
KEYWORDS=FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件
STORAGE_ENGINE=filesystem
STORAGE_CONFIG={}

手动改为10,重启后自动重置回来

@vastsa
Copy link
Owner

vastsa commented Mar 4, 2023

目前这是个bug,可以去后台修改保存试一下

@waifei01
Copy link

请问如何在后台修改,我是通过搭建filebrowser服务直接修改.env中上传文件大小限制,但是重启FileCodeBox容器后还是10m大小限制。

@charon7718
Copy link

同样遇到此问题,在后台与env文件都修改了还是限制10m

@xp9477
Copy link

xp9477 commented Jul 21, 2023

拉取代码修改settings.py里的默认值,然后自己打包镜像

@vastsa
Copy link
Owner

vastsa commented Aug 15, 2023

已更新2.0beta

@vastsa vastsa closed this as completed Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants