facebookarchive/php-graph-sdk

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

ThaDaVos opened this issue · 0 comments

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