mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 06:34:40 +00:00
create sdoc gen doc_uuid (#5886)
This commit is contained in:
@@ -279,6 +279,10 @@ class FileView(APIView):
|
||||
|
||||
new_file_path = posixpath.join(parent_dir, new_file_name)
|
||||
file_info = self.get_file_info(username, repo_id, new_file_path)
|
||||
# gen doc_uuid
|
||||
if new_file_name.endswith('.sdoc'):
|
||||
doc_uuid = get_seadoc_file_uuid(repo, new_file_path)
|
||||
file_info['doc_uuid'] = doc_uuid
|
||||
return Response(file_info)
|
||||
|
||||
if operation == 'rename':
|
||||
|
Reference in New Issue
Block a user