Hi, this probably won't be needed since http://drupal.org/node/731992 exists, but what the heck.

I needed the separator to work for filefields when I had a list of file paths & names string separated, ie /pics/001,/pics/002 & the 'string separator' set to ',' - not very elegant, but it might be some use to someone else in a similar situation.

note that i don't check to ensure the filefield will accept multivalues

Comments

espe98’s picture

Status: Needs review » Needs work
eileenmcnaughton’s picture

Hi,

I just wanted to note that this works for me and I don't think it is superceded / replaced by the item you referred to as this allows a code free migration of multiple files / images in the same way the taxonomy support does. The other patch requires that you also write a hook.

I would like to clarify your comment:

the 'string separator' set to ','

- the string separator is set to the string separator configured in your migrate settings (',' by default). Obviously this is better than having it hard coded to ",".

eileenmcnaughton’s picture

StatusFileSize
new2.22 KB

Hi,

Just edited this patch & re-attached it. The edit is extremely minor

--- filefield.migrate.old 2010-04-02 00:56:14.000000000 -0400
+++ filefield.migrate.inc 2010-04-02 01:03:20.000000000 -0400

to

--- filefield.migrate.inc 2010-04-02 00:56:14.000000000 -0400
+++ filefield.migrate.inc 2010-04-02 01:03:20.000000000 -0400

so that the patch can be easily applied. This applied cleanly to the latest dev for me

mikeryan’s picture

Status: Needs work » Closed (duplicate)

As with #731992: multi-value filefields, Migrate and Migrate Extras V1 are no longer supported.