facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.95k forks source link

Get the size of remote files #1186

Open alielmajdaoui opened 4 years ago

alielmajdaoui commented 4 years ago

Uploading remote files(videos) without chunking works well! But when you try to chunk upload videos, you will get this error filesize(): stat failed for https://example.com/video.mp4

I have just added a new method to get the size of the remote file to be uploaded which will be called inside the getSize method if the file is remote.

facebook-github-bot commented 4 years ago

Hi @p4rse!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

facebook-github-bot commented 4 years ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!