mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Don't request permission for file upload
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -148,7 +148,7 @@ const TranscriptCreate = () => {
|
||||
<Button
|
||||
colorScheme="blue"
|
||||
onClick={uploadFile}
|
||||
isDisabled={!permissionOk || loadingRecord || loadingUpload}
|
||||
isDisabled={loadingRecord || loadingUpload}
|
||||
>
|
||||
{loadingUpload ? "Loading..." : "Upload File"}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user