mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
[api2] update err msg of owa api
This commit is contained in:
@@ -1846,7 +1846,7 @@ class OwaFileView(APIView):
|
|||||||
filename = os.path.basename(path)
|
filename = os.path.basename(path)
|
||||||
filetype, fileext = get_file_type_and_ext(filename)
|
filetype, fileext = get_file_type_and_ext(filename)
|
||||||
if fileext not in OFFICE_WEB_APP_FILE_EXTENSION:
|
if fileext not in OFFICE_WEB_APP_FILE_EXTENSION:
|
||||||
error_msg = 'file extension invalid.'
|
error_msg = 'path invalid.'
|
||||||
return api_error(status.HTTP_400_BAD_REQUEST, error_msg)
|
return api_error(status.HTTP_400_BAD_REQUEST, error_msg)
|
||||||
|
|
||||||
# get wopi dict
|
# get wopi dict
|
||||||
|
Reference in New Issue
Block a user