Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When importing files using the Migrate module, if Media Browser Plus is enabled, the destination always defaults to the public files directory, regardless of what's set as the destination directory in Migrate. This happens in media_browser_plus_file_presave. If Media Browser Plus finds no value for the field_folder tid, it just defaults to the root folder.
Comment | File | Size | Author |
---|---|---|---|
#2 | no_forced_uri_for_migrate-2553559-2.patch | 1.49 KB | anemirovsky |
Comments
Comment #2
anemirovsky CreditAttribution: anemirovsky commentedMigrate conveniently adds some metadata to the entity, so I've adjusted the presave function to check if that metadata is present and to not alter the uri if that's the case.
Comment #3
das-peter CreditAttribution: das-peter at Cando commentedThanks for the patch, looks good to me :)