mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 11:27:18 +00:00
[web-api] Return dst-repo-id when move a file
This commit is contained in:
@@ -1362,7 +1362,7 @@ class FileView(APIView):
|
|||||||
return reloaddir(request, dst_repo, dst_dir)
|
return reloaddir(request, dst_repo, dst_dir)
|
||||||
else:
|
else:
|
||||||
resp = Response('success', status=status.HTTP_301_MOVED_PERMANENTLY)
|
resp = Response('success', status=status.HTTP_301_MOVED_PERMANENTLY)
|
||||||
uri = reverse('FileView', args=[repo_id], request=request)
|
uri = reverse('FileView', args=[dst_repo_id], request=request)
|
||||||
resp['Location'] = uri + '?p=' + quote(dst_dir_utf8) + quote(new_filename_utf8)
|
resp['Location'] = uri + '?p=' + quote(dst_dir_utf8) + quote(new_filename_utf8)
|
||||||
return resp
|
return resp
|
||||||
elif operation.lower() == 'create':
|
elif operation.lower() == 'create':
|
||||||
|
Reference in New Issue
Block a user