Comments

StuartDH’s picture

Hi Robrecht,

Thanks for putting together such a great module. Really looking forward to being able to use it on D6 and I'll be sure to put in at least $100 donation when I've imported my site.

Not knowing too much about the more technical aspects, I'm basically looking to move a vbdrupal5 site to a fresh install of D6

Using Views Bonus module I can create CSV exports of the D5 views that include an imagefield field with the option set to 'path to image'. This results in CSVs with fields that look something like:

files/images/food/fruit/apple1.jpg
files/images/food/fruit/orange213.gif
files/images/food/fruit/pear008.gif
files/images/cars/vwgolf911.jpg
files/images/cars/volvo229.jpg

Would be great if we could use any software to ftp all images into folders for files/images/food/fruit/ and files/images/cars etc, then map them during import using csv fields like those above.

Obviously, it's a similar sort of situation with PDFs/docs or any other files. Using filefield I can create CSV views with files/brochure/pdf/ipod33GB.pdf etc

No idea if that's even remotely possible, but I hope it gives some idea of the sort of workflow that I was thinking about

Thanks again

Stu

cjdavis’s picture

Do you mean the http://drupal.org/project/views_bonus export? We are working on imagefield import support now, I hope to have something to post for it in the next week.

If somebody else is already working on this let me know so we don't duplicate the effort...

StuartDH’s picture

Yep, that's the one. If we can import images like above within the week, then I'd put in another $100 as it would save me a good few hours uploading them manually one at a time

Thanks

Stu

doughold’s picture

cjdavis, I am completing a website this weekend that needs this support, I would be willing to pitch in if you'd like me to do anything, or at the very least I can find bugs for you! I might not be the greatest programmer, but I got the uc_product to import successfully in D6.

beatnikdude’s picture

Subscribing, I am am doing uc_product imports and want ImageField support.

drdmmr’s picture

I've just set up a D6 site and need to import my product data + images...

Subscribing

Robrecht Jacques’s picture

Assigned: Robrecht Jacques » Unassigned
Status: Active » Fixed

CCK ImageField support has been added to CVS. It will be included in the -rc4 release (later today).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

cjdavis’s picture

Category: feature » bug
Priority: Normal » Critical
Status: Closed (fixed) » Active

It appears that imagefield (and I assume filefield as well) imports are completely broken in the current dev versions. The filepath is being dropped when the information is being inserted into the files table - causing a bad row of data in the table, necessitating some hand editing to remove it.

The correct path is being displayed in the form on step 5, so I'm tracking down where this fails.

cjdavis’s picture

Status: Active » Needs review
StatusFileSize
new16.38 KB

Ok, tracked it down. Attached is a fixed node_import.inc file that fixes import of any field that uses filepath in node_import - that includes CCK types filefield and imagefield at minimum.

Also includes the fix for the mb_strlen() error from #383926: mb_strlen() errors on taxonomy imports

hepabolu’s picture

I used this file (#10) instead of the original one of the dev-version. It did solve my problem with importing IMCEImage fields, but the mb_strlen() remains and no taxonomy settings are imported.

tahiticlic’s picture

terry22’s picture

resolved.
Now I got no errors but no files are referenced in my nodes...
Does someone has a clue?

terry22’s picture

Hi again,
does someone succeed in importing imagefield ?
In my case, the fields are correctly imported but no fid are inserted in the content type nodes.

Does someone find a fix?

chrowe’s picture

Hello,

Thanks to everyone who has put time into this module. It has been a great help. I too am trying to import files without success. I tried a test import of 2 nodes with file attachments.

1. has the file in the File_Field path
http://qa.library.ole.org/sites/qa.library.ole.org/files/files/1/Afr_1st...

2. the other is nested several directories down.
http://qa.library.ole.org/sites/qa.library.ole.org/files/files/1/siyavul...

We would like to preserve the directory structure like in number 2 but would be happy if we could get number 1 working.

I have also tried this with 6.x-1.0-rc4 and have the same problem.

I have some developers who can take a look at this next week. If you can point them in the right direction that would be wonderful. Or I can pay for your time if you can give me an estimate of what it will take.

Thanks again,

Chris

chrowe’s picture

I just realized that my main issues is #433738: Support tokenized file paths (FileField_Paths module)

When I replace the [uid] in File path with the admin uid '1' the file import works.

For a temporary fix I can just change this while I upload since the site is not under heavy use and then change it back to [uid] when I am done.

As for point number 2. I am still interested in knowing what it would take to maintain the file structure we have.

Chris

terry22’s picture

@chrowe :

Hi , in which file do you change the [uid] for fixing the import?

thank you for your help

chrowe’s picture

@terry22

This is only if you are using the cck filefield module.

It is in the "Path settings" for the field you are importing into admin/content/node-type//fields/

terry22’s picture

@chrowe :
thank you I will try this.
for now images are imported in database but not linked to the node.

ak’s picture

subscribing