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

[BUG] Cannot upload a video file from remote if the url contains parameters #1190

Open ThaDaVos opened 4 years ago

ThaDaVos commented 4 years ago

When the remote url looks like the following: https://example.com/some/path/to/videos/filename.mp4?id=1234&test=test The following line will fail https://github.com/facebookarchive/php-graph-sdk/blob/5.x/src/Facebook/FileUpload/Mimetypes.php#L974 As it will look for a mimetype of mp4?id=1234&test=test instead of the expected mp4