Closed (won't fix)
Project:
Migrate Extras
Version:
6.x-1.x-dev
Component:
Filefield
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Feb 2010 at 09:18 UTC
Updated:
23 Jun 2011 at 23:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
dpiAttached is a patch that notifies the user that the directory does not exist. No attempt is made to create it, though.
Tested against 6.x-1.0-alpha2
Comment #2
a_c_m commentedI ran into this as well, it would leave the files in /tmp/ and then try to link to them from there. Shouldn't it create the folders as needed?
Comment #3
dpiIt should be up to FileField to create the directory immediately, I'm not sure it would be right to create the directory ourselves.
Comment #4
a_c_m commentedhumm, normally when you upload a file it does - makes me thing we are doing something strange by creating it programatically thats skipping a step?
Comment #5
frankcarey commentedYeah, I personally ran into this as well. It looks like filefield could create only 1 subdirectory deep. I was using tokens to put files in a structure like "files/field_myfield/[uid]/" Once I created the "files/field_myfield/" directory, it would make the rest of the uid directories. Also watch out for permissions when using drush, as drush runs as YOU, the logged in *nix user, not as your webserver, so you need to share group permissions or just set everything to 777 during the migration. See: #729634: drush migrate-import runs as the system user, which can affect file permissions.
I like danph's warning though because it caused me a lot of pain too, and it would have been nice to at least know what was going on.
Comment #6
frankcarey commentedlooking at this patch, I think it may give a false positive because like I said, filefield WILL create new paths. Can someone test this out and let us know?
Comment #7
frankcarey commentedalso, I'm not so sure about my "1 subdirectory deep" assertion. That might have been due to the fact that I created the directory as my linux user, and then the drush script had write permissions for it.
Comment #8
frankcarey commentedthis isn't a bug with migrate extras - so changing this to a feature request
Comment #9
vitis commentedsub
Comment #10
mikeryanMigrate and Migrate Extras V1 are no longer supported.