mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: options to disable preview in file sharing
This commit is contained in:
@@ -407,8 +407,6 @@ func (client *Client) MonitorUpload(uploadURL, callbackKey, path string, size ui
|
||||
}
|
||||
return
|
||||
}
|
||||
util.Log().Debug("无法获取上传会话状态,%s", err.Error())
|
||||
return
|
||||
}
|
||||
util.Log().Debug("无法获取上传会话状态,继续下一轮,%s", err.Error())
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ func (fs *FileSystem) DispatchHandler() error {
|
||||
}
|
||||
|
||||
switch policyType {
|
||||
case "mock":
|
||||
case "mock", "anonymous":
|
||||
return nil
|
||||
case "local":
|
||||
fs.Handler = local.Driver{
|
||||
|
||||
Reference in New Issue
Block a user