How To — [verified] Download Vmdk File From Datastore
file_path = task.result['file_path'] file_name = task.result['file_name']
const handleSubmit = async (values: DownloadRequest) => setLoading(true); try const response = await axios.post('/api/v1/download/request', values); const task_id, status, message = response.data; how to download vmdk file from datastore
const downloadCompletedFile = async (taskId: string) => try const response = await axios.get( /api/v1/download/file/$taskId , responseType: 'blob' ); file_path = task
interface DownloadTask task_id: string; status: string; progress: number; message: string; result?: any; error?: string; message = response.data