Hi, I have found that the path that this module passes as argument to the create_video method of the bcmapi doesn't allow to upload on windows.
It's a curl issue in fact which raise a BCMAPITransactionError exception.
I had done a small test using the API outside of drupal, and it works perfectely if the path of a file to upload looks like "@c:\\test.mp4".
So I've added the following fix to the methode brightcove_upload_video of the brightcove.module for windows users and it now works :
if (substr(PHP_OS, 0, 3) == 'WIN')
{
$path = realpath(".").'/'.$path;
$path = str_replace('/','\\',$path);
}
I will provides a patch.
I'm currentely benching the 6.x version and will soon check this for the 7.x version but as it is mainly a Curl issue I think that if the path is build in the same way, there will be the same bug on the 7.x version while trying to upload a video from drupal
Comment | File | Size | Author |
---|---|---|---|
#1 | windowsUpload-1434038-1.patch | 550 bytes | muldos |
Comments
Comment #1
muldos CreditAttribution: muldos commentedHere is the patch
Comment #2
k.dani CreditAttribution: k.dani commentedWe are working on the 7.x version of the module, but as soon as we have chance to check it, we review it.
Comment #3
k.dani CreditAttribution: k.dani commentedComment #4
k.dani CreditAttribution: k.dani commentedWe don’t maintain the Drupal 6 version of the module, but apply patches (if it is in RTBC status) until the stable version of Drupal 8 is released.
Comment #5
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commented