-
Notifications
You must be signed in to change notification settings - Fork 0
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
Data Integrity #3
Conversation
177f16b
to
218b000
Compare
api/r0/upload_async.go
Outdated
) | ||
|
||
func UploadMediaAsync(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{} { | ||
server := _routers.GetParam("server", r) | ||
mediaId := _routers.GetParam("mediaId", r) | ||
filename := filepath.Base(r.URL.Query().Get("filename")) | ||
// GK-CUSTOMIZATION: Sanitize the filename | ||
if len(filename) > 24 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Danieloni1 this should be set in the config.yaml under "Uploads"
util/mxc.go
Outdated
|
||
// GK-CUSTOMIZATION: Supported file types | ||
var supportedFileTypes = []string{ | ||
"docx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Danieloni1 lets also move this to config yaml?
There's a nice example of having this kind of array at the thumbnails
section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, missing xls
and mov
types
Check my fully renewed list: https://www.notion.so/globekeeper/Supported-File-Types-403a4f05fb7e4f7c83954e52eac124f4?pvs=4#3f251b4a73be40a0a4dfe64b3d3571eb
216f1f9
to
10bb402
Compare
2670865
to
75237a7
Compare
75237a7
to
06337a5
Compare
👍 |
06337a5
to
aa4f010
Compare
No description provided.