diff --git a/model/office/callback.go b/model/office/callback.go index 0e16fa0b693..ebca8500a26 100644 --- a/model/office/callback.go +++ b/model/office/callback.go @@ -1,3 +1,5 @@ +// Package office is for interactions with an OnlyOffice server to allow users +// to view/edit their office documents online. package office import ( @@ -136,9 +138,6 @@ func saveFile(inst *instance.Instance, detector conflictDetector, downloadURL st if err != nil { return nil, err } - if !isOfficeDocument(file) { - return nil, ErrInvalidFile - } res, err := docserverClient.Get(downloadURL) if err != nil {