Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.)
Comment | File | Size | Author |
---|---|---|---|
mm_filefield.patch | 2.65 KB | Tobias Weibel | |
Comments
Comment #1
Tobias Weibel CreditAttribution: Tobias Weibel commentedComment #2
robin_b CreditAttribution: robin_b commentedI 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.