1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-09 02:47:51 +00:00

[api] Change upload-link.

This commit is contained in:
killing 2013-01-05 11:54:15 +08:00
parent 1adab92810
commit 3fd8c99a46

View File

@ -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):