I have a node-type that contains a multi-valued filefield.
I have a mediamover-config that harvests the files from this field and uploads them to youtube.

If the user creates a node with a single file, then the 'status' for this file, in the media_mover_files table, is 8 (MMA_FILE_STATUS_COMPLETE_COMPLETE).

However, if the user uploads multiple files, then the 'status' for these files is 7 (MMA_FILE_STATUS_IN_COMPLETE).

That is, for some reason I do not understand, it seems that some final step in the processing of these files is not completed.

As a result, media_mover_api_node_files_fetch($nid) fails to fetch these files, because by default it looks for files with status = 8.

As a temporary work-around, I replaced:
$media_mover = media_mover_api_node_files_fetch($nid);
with

$media_mover = media_mover_api_node_files_fetch($nid);
if (!$media_mover){
  $media_mover = media_mover_api_node_files_fetch($nid, MMA_FILE_STATUS_IN_COMPLETE);  
}

Comments

arthurf’s picture

What's the the storage step and complete step that you're using? It sounds to me like the additional files are some how not being processed correctly.

kobnim’s picture

Status: Active » Closed (cannot reproduce)

Arthur,
I have not succeeded in duplicating this problem. If the problem re-appears, I will re-open this issue.
- Mindy