From a6acf44eb46a6ddf5de71a9412250f1b636d00c4 Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 18 Jul 2020 00:28:49 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8Dwindows=E4=B8=8A=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E7=9A=84spug=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=99=A8=E4=B8=8A=E4=BC=A0=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/file/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/file/views.py b/spug_api/apps/file/views.py index 40504b9..bd7c9e2 100644 --- a/spug_api/apps/file/views.py +++ b/spug_api/apps/file/views.py @@ -65,7 +65,7 @@ class ObjectView(View): cli = host.get_ssh() rds_cli = get_redis_connection() callback = partial(self._compute_progress, rds_cli, form.token, file.size) - cli.put_file_by_fl(file, os.path.join(form.path, file.name), callback=callback) + cli.put_file_by_fl(file, f'{form.path}/{file.name}', callback=callback) return json_response(error=error) def delete(self, request):