This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Upload } from 'tus-js-client'; | |
import { isEmpty, head } from 'lodash'; | |
function uploadFile( | |
file: File, | |
accessToken: string, | |
bucketName: string, | |
fileName: string, | |
contentType: string, | |
folder?: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import FormData from 'form-data'; | |
import axios from 'axios'; | |
import fs from 'fs'; | |
interface ICloneVoiceParams { | |
description:string; | |
name:string; | |
fileUrls: string[]; | |
labels: Record<string,string>; |