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.
Would it be possible to add an additional field to allow importing the user photo path from the text file? Right now I am uploading a bunch of images labeled by usernames and setting the path by editing an sql dump of the user table. This would help immensely. Thanks!
Comment | File | Size | Author |
---|---|---|---|
#5 | user_import-picture-61642-5.patch | 1.59 KB | jwilson3 |
Comments
Comment #1
Robert Castelo CreditAttribution: Robert Castelo commentedThis sounds interesting, but can't see how it would hang together.
Where do the images get uploaded?
- a directory in the user_import module directory? Somewhere else?
How do you put the filepath for each image into the csv file?
Comment #2
coupet CreditAttribution: coupet commentedyes, if picture support is enabled in user settings.
use Picture image path (specified by admin)
Subdirectory in the directory files/ where pictures will be stored.
Comment #3
Jackinloadup CreditAttribution: Jackinloadup commentedDoes anyone know a way to do picture imports? specifying a file path seems to be the most logical.
Comment #4
jrglasgow CreditAttribution: jrglasgow commentedI wrote a patch to add some picture support - upload the pictures to the site user pictures directory. Have a field with the file name.
When the users are imported
if you have files in a directory within the pictures directory then that directory needs to prepend to the file name in your csv file
Comment #5
jwilson3RTBC. Patch from #4 works perfectly, except that it just needed a re-roll.
Comment #6
jwilson3Comment #7
gisleNeeds to be re-rolled for most recent version.