From 68be967e66b2ed521b7bb4187ffd4ef8cf3e4197 Mon Sep 17 00:00:00 2001 From: Sergey Mankovsky Date: Thu, 18 Jul 2024 10:56:42 +0200 Subject: [PATCH] Don't request permission for file upload --- server/tests/test_transcripts_process.py | 4 ++-- www/app/[domain]/transcripts/new/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/tests/test_transcripts_process.py b/server/tests/test_transcripts_process.py index ef105c85..75531d04 100644 --- a/server/tests/test_transcripts_process.py +++ b/server/tests/test_transcripts_process.py @@ -28,9 +28,9 @@ async def test_transcript_process( # upload mp3 response = await ac.post( - f"/transcripts/{tid}/record/upload?chunk_number=0&total_chunks=1", + f"/transcripts/{tid}/record/upload", files={ - "chunk": ( + "file": ( "test_short.wav", open("tests/records/test_short.wav", "rb"), "audio/mpeg", diff --git a/www/app/[domain]/transcripts/new/page.tsx b/www/app/[domain]/transcripts/new/page.tsx index ef014e79..4f02d6de 100644 --- a/www/app/[domain]/transcripts/new/page.tsx +++ b/www/app/[domain]/transcripts/new/page.tsx @@ -148,7 +148,7 @@ const TranscriptCreate = () => {