F 修复windows上运行的spug文件管理器上传路径错误的问题

pull/154/head
vapao 2020-07-18 00:28:49 +08:00
parent 7791aefd29
commit a6acf44eb4
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class ObjectView(View):
cli = host.get_ssh() cli = host.get_ssh()
rds_cli = get_redis_connection() rds_cli = get_redis_connection()
callback = partial(self._compute_progress, rds_cli, form.token, file.size) 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) return json_response(error=error)
def delete(self, request): def delete(self, request):