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

大佬~希望能加个简易权限,游客上传大小限制,管理员上传大小限制 #134

Open
DFP86 opened this issue Feb 21, 2024 · 1 comment

Comments

@DFP86
Copy link

DFP86 commented Feb 21, 2024

如题自用,偶尔分享文件给朋友取件
然后,希望有这么一个场景可以实现:

游客限制上传10m大小。(根据文件env2设置10m)
管理员登录后可以上传2g大小。(也是根据env2文件对应2G)

这样就小文件上传无需登录,大文件上传需要登录。(目的是防止被游客上传超大文件占用空间)

当然如果大佬想做完整的user权限划分也是一样的(不过其实用不到那么复杂的场景,只需要简易的分开游客和管理员的上传限制就行~~),谢谢大佬~~!!

P.S. 有个小建议在admin后台页面,加入一个按钮可以跳回上传页面。现在关闭了游客上传之后,要进入/#/admin,输入密码后,又要去地址栏删掉/admin,回车,才能回到能上传的页面
例如这样~:
image

@vastsa
Copy link
Owner

vastsa commented Feb 21, 2024

收到,感谢建议

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

2 participants