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

CC98 share 用户上传与下载 #4

Open
wyc-ruiker opened this issue Mar 12, 2016 · 5 comments
Open

CC98 share 用户上传与下载 #4

wyc-ruiker opened this issue Mar 12, 2016 · 5 comments
Assignees
Milestone

Comments

@wyc-ruiker
Copy link
Collaborator

暂时什么都不会做

@sgjsakura
Copy link
Collaborator

建议使用 FileController 的 Upload 和 Download 方法来实现上传下载。

@sgjsakura
Copy link
Collaborator

@wyc-ruiker 新需求:下载的时候检查所有权,如果下载者不是当前上传用户,则只能下载共享的项目,未共享的内容无法下载

@LeadroyaL
Copy link
Collaborator

@wyc-ruiker \CC98.VNext.AspNet5\src\CC98.Share\Controllers\FileController.cs
85\113行,返回应为400,而不是404.
80行的404应该是对的

@hxhc
Copy link

hxhc commented Jun 30, 2016

遇到一个问题,我上传了一些PDF,其他都没问题,但有一个文件已上传就是如下报错:

网站运行时发生错误
这可能是管理员正在调试网站。如果你持续看到这个错误,请联系 CC98 技术组。

文件名称为“Hastie T., Tibshirani R., Friedman J. The Elements of Statistical Learning”, 文件大小为7.89M
将文件名中的‘.' 和 ','去掉后,仍无法上传,不知为何

@sgjsakura
Copy link
Collaborator

@hxhc 你好,这个问题应当是文件名过长引起的,目前已经修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants