# Downloading recorded zoom meeting return partial file

**URL:** <https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215>\
**Category:** API and Webhooks\
**Created:** [October 5, 2020, 3:35pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215 "2020-10-05T15:35:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanju.ps](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sanju.ps/32/16475_2.png) [@sanju.ps](https://devforum.zoom.us/u/sanju.ps)\
**Post date:** [October 5, 2020, 3:35pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/1 "2020-10-05T15:35:33Z")

</div>

Hi Team,

We are encountering a strange error from Zoom API when downloading recorded meeting. Please see the detailed explanation below.

1. When I tried to download the recordings files that are about to auto-delete within 1-3 days, the downloaded file is partial and it is only 41KB. But the Original file size is 239 MB or something like that.
2. In my recording list there are recordings which will auto-delete after 21 days and so, but I can download them without any issue regardless of the file size.

Programming language and Framework: PHP - LARAVEL  
Authentication method: JWT  
Errors: There is no error logged  
Downloading method: CURL

CODE:-

```
 public function downloadFileToStorage($downloadUrl, $fileName, $ext)
{
    try{
        $src = $downloadUrl;
        $downloadLink = null;
        $dest = storage_path("app/public/files/$fileName");
        $ch = curl_init($src);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_ENCODING, "");
        curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
        curl_setopt($ch, CURLOPT_TIMEOUT, 0); //timeout in seconds
        curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
        curl_setopt($ch, CURLOPT_POSTFIELDS, "");
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 
        curl_exec($ch);            
        if (!curl_errno($ch)) {
            $info = curl_getinfo($ch);
            $downloadLink = $info['url'];
        }else{
            Log::info($ch);
        }
        if ($downloadLink) {              
            copy($downloadLink, $dest);
        }
    }catch (\Exception $e){
        Log::error($e);
    }
}
```

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [October 5, 2020, 3:36pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/2 "2020-10-05T15:36:19Z")

</div>

Hey @sanju.ps

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. 🙂

Checkout this related thread that may have the answer you are looking for:

> [@How to download a recording using C#](https://devforum.zoom.us/t/-/5880):
>
> I’ve written some C# code to retrieve the following values using the Zoom API’s: List All Users List User Recordings But I can’t seem to download recording files successfully using the WebClient C# class. It seems to download the HTML for the Sign In page. I’ve also tried setting the Authorization header the same way as I do to retrieve values using the Zoom API’s. But it doesn’t download any data when I set the Authorization header before trying to download the recording files. Can someon…

If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,  
DeveloperBot

---

<div class="post-metadata">

**Author:** ![sanju.ps](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sanju.ps/32/16475_2.png) [@sanju.ps](https://devforum.zoom.us/u/sanju.ps)\
**Post date:** [October 5, 2020, 3:39pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/3 "2020-10-05T15:39:46Z")

</div>

@DeveloperBot,

No, this thread not answering my question.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 6, 2020, 3:22pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/4 "2020-10-06T15:22:10Z")

</div>

Hey @sanju.ps,

Thanks for reaching out about this—in order to take a closer look at this, can you provide the full API response where you’re getting the download URLs from?

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![sanju.ps](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sanju.ps/32/16475_2.png) [@sanju.ps](https://devforum.zoom.us/u/sanju.ps)\
**Post date:** [October 6, 2020, 3:42pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/6 "2020-10-06T15:42:57Z")

</div>

@will.zoom  
Here is the response

```
array (
  'url' => 'URL',
  'content_type' => 'text/html;charset=utf-8',
  'http_code' => 200,
  'header_size' => 3988,
  'request_size' => 263,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.49823,
  'namelookup_time' => 0.004243,
  'connect_time' => 0.093429,
  'pretransfer_time' => 0.282241,
  'size_upload' => 0.0,
  'size_download' => 12040.0,
  'speed_download' => 24176.0,
  'speed_upload' => 0.0,
  'download_content_length' => -1.0,
  'upload_content_length' => 0.0,
  'starttransfer_time' => 0.408976,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '52.202.62.233',
  'certinfo' => 
  array (
  ),
  'primary_port' => 443,
  'local_ip' => '10.0.2.18',
  'local_port' => 52966,
  'http_version' => 2,
  'protocol' => 2,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTPS',
)
```

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 7, 2020, 6:29pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/7 "2020-10-07T18:29:52Z")

</div>

Thank you @sanju.ps — I just DM’d you for some additional details when you have a chance.

Best,  
Will

---

<div class="post-metadata">

**Author:** ![sanju.ps](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sanju.ps/32/16475_2.png) [@sanju.ps](https://devforum.zoom.us/u/sanju.ps)\
**Post date:** [October 13, 2020, 7:14pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/9 "2020-10-13T19:14:13Z")

</div>

Hi Will,

Thanks for the reply. I just DM’d the details. Please have a look.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 14, 2020, 5:23pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/10 "2020-10-14T17:23:01Z")

</div>

Hey @sanju.ps,

I’m not seeing your DM—if you’re having trouble replying to my message, you can also reach out to [developersupport@zoom.us](mailto:developersupport@zoom.us) as well.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![sanju.ps](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sanju.ps/32/16475_2.png) [@sanju.ps](https://devforum.zoom.us/u/sanju.ps)\
**Post date:** [October 15, 2020, 3:41am UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/11 "2020-10-15T03:41:42Z")

</div>

Hi Will,

An email with relevant details has been sent to the address [developersupport@zoom.us](mailto:developersupport@zoom.us)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 15, 2020, 8:14pm UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/12 "2020-10-15T20:14:05Z")

</div>

Thanks, @sanju.ps — I’ve continued the conversation there!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 15, 2020, 6:14am UTC](https://devforum.zoom.us/t/downloading-recorded-zoom-meeting-return-partial-file/32215/13 "2020-11-15T06:14:07Z")

</div>

Closed on November 15, 2020, 6:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
