Problem/Motivation

Media Mover fails to copy a file to a CCK filefield if destination path doesn't exists and the path subdirectory level is more than 1. Also the output to the log is empty.

Proposed resolution

See attached patch. It fixes the following items:

  • Line 472-474: Fix logging
  • Line : 534-539: Overwrite the max filesize of file validator with CCK filefield value (basically another problem)
  • Line : 588-593: Fix subdirectory creation

Remaining tasks

(reviews needed, tests to be written or run, documentation to be written, etc.)

CommentFileSizeAuthor
mm_filefield.patch2.65 KBTobias Weibel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Tobias Weibel’s picture

Status: Active » Needs review
robin_b’s picture

I experience a similar behaviour, although it's really random. Sometimes it works for weeks and then fails a couple of times a row. I'll try your patch.