mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
admin upload links
fix bug: use upload token
This commit is contained in:
@@ -126,7 +126,7 @@ class AdminUploadLinkUpload(APIView):
|
|||||||
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
|
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
result['upload_link'] = gen_file_upload_url(token, 'upload-api')
|
result['upload_link'] = gen_file_upload_url(upload_token, 'upload-api')
|
||||||
|
|
||||||
return Response(result)
|
return Response(result)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user