mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-09 10:57:27 +00:00
[api] Change upload-link.
This commit is contained in:
parent
1adab92810
commit
3fd8c99a46
@ -335,7 +335,7 @@ class UploadLinkView(APIView):
|
|||||||
if request.cloud_mode and seafserv_threaded_rpc.check_quota(repo_id) < 0:
|
if request.cloud_mode and seafserv_threaded_rpc.check_quota(repo_id) < 0:
|
||||||
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Above quota')
|
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Above quota')
|
||||||
|
|
||||||
upload_url = gen_file_upload_url(token, 'upload')
|
upload_url = gen_file_upload_url(token, 'upload-api')
|
||||||
return Response(upload_url)
|
return Response(upload_url)
|
||||||
|
|
||||||
def get_file_size (id):
|
def get_file_size (id):
|
||||||
|
Loading…
Reference in New Issue
Block a user