I have added the Write API key in the Brightcove module settings. However, when I go to upload a video nothing happens. After seeming to complete the upload (the browser returns a "100% complete" message + Drupal interface spinning timer closes) the upload modal box stays open and no video is added to the field. Also, when I log in to BC and check my library no videos have been uploaded. No error messages are shown in Drupal. I tried searching for a fix but could not find this particular issue.

As stated in the issue title, Brightcove video can be added via "Browse" method, it is only "Upload" that is not working.

Thanks!

Comments

ProperCursive’s picture

Title: Brightcove video can be added via "Browse" method but "Upload" stalls and does nothing. » Brightcove video "Upload" stalls because of AJAX error "Invalid form POST data."
Version: 7.x-2.0 » 7.x-3.1

I updated to the current version 7.x-3.1 and am still not able to write to my BC account via upload. The error I receive in the logs states the following:

Type: Ajax
Message: Invalid form POST data.
Severity warning

Any thoughts on why the BC module and Drupal 7.9 Ajax are not working properly to post an uploaded video to my BC account? Write and Read APIs are both set correctly.

ProperCursive’s picture

This issue seems to be resolved with 7.x-3.2

tamasd’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mlima’s picture

Issue summary: View changes

How this have been resolved?

lhuria94’s picture

Status: Closed (fixed) » Active

I am using Brightcove 7-x.5.x version. This upload has stopped working recently.

Error: Video upload to Brightcove failed. Error: exception 'BCMAPIApiError' with message 'API error' == upload requires a multipart/form-data POST with a valid filestream (207) == ' in /mnt/www/html/your_project/docroot/sites/all/libraries/bc/bc-mapi.php:1334 Stack trace: #0 /mnt/www/html/your_project/docroot/sites/all/libraries/bc/bc-mapi.php(523): BCMAPI->putData(Array) #1 /mnt/www/html/your_project/docroot/sites/all/modules/brightcove/brightcove.module(680): BCMAPI->createMedia('video', '/mnt/gfs/your_project...', Array, Array) #2 /mnt/www/html/your_project/docroot/sites/all/modules/brightcove/brightcove.module(1080): brightcove_upload_video('/mnt/gfs/your_project...', Array, 'MP4') #3 /mnt/www/html/your_project/docroot/sites/all/modules/brightcove/brightcove_field/brightcove_field.module(205): _brightcove_upload_form_callback(Array, Array) #4 /mnt/www/html/your_project/docroot/includes/ajax.inc(398): ajax_upload_video_dialog_close_callback(Array, Array) #5 [internal function]: ajax_form_callback() #6 /mnt/www/html/your_project/docroot/includes/menu.inc(527): call_user_func_array('ajax_form_callb...', Array) #7 /mnt/www/html/your_project/docroot/index.php(21): menu_execute_active_handler() #8 {main}

Any thoughts?

jan.mashat’s picture

Status: Active » Closed (works as designed)

This version of the module is no longer officially supported on Drupal.org. Only the latest 2 major versions are supported, which are currently 8.x-1.x and 7.x-6.x.

Nevertheless, I haven't been able to reproduce this issue on apache 2.4.7 with php 5.5.9 and the following modules:

# drush pm-list --type=Module --status=enabled
 Package           Name                                   Version
 Chaos tool suite  Chaos tools (ctools)                   7.x-1.9
 Core              Block (block)                          7.44
 Core              Color (color)                          7.44
 Core              Comment (comment)                      7.44
 Core              Contextual links (contextual)          7.44
 Core              Dashboard (dashboard)                  7.44
 Core              Database logging (dblog)               7.44
 Core              Field (field)                          7.44
 Core              Field SQL storage (field_sql_storage)  7.44
 Core              Field UI (field_ui)                    7.44
 Core              File (file)                            7.44
 Core              Filter (filter)                        7.44
 Core              Help (help)                            7.44
 Core              Image (image)                          7.44
 Core              List (list)                            7.44
 Core              Menu (menu)                            7.44
 Core              Node (node)                            7.44
 Core              Number (number)                        7.44
 Core              Options (options)                      7.44
 Core              Overlay (overlay)                      7.44
 Core              Path (path)                            7.44
 Core              RDF (rdf)                              7.44
 Core              Search (search)                        7.44
 Core              Shortcut (shortcut)                    7.44
 Core              System (system)                        7.44
 Core              Taxonomy (taxonomy)                    7.44
 Core              Text (text)                            7.44
 Core              Toolbar (toolbar)                      7.44
 Core              Update manager (update)                7.44
 Core              User (user)                            7.44
 Fields            Brightcove Field (brightcove_field)    7.x-5.1
 Other             Brightcove (brightcove)                7.x-5.1
 Other             Entity API (entity)                    7.x-1.7

Please open a ticket with Brightcove support if the issue persists.