I tried to incorporate attachments as part of my import and got the following error message:

Can not import this node. Check following errors:

* File attachment /files/filename.pdf not found. You need to upload it to files first.

I have the file uploaded to the site and even changed it over to the full URL (http://mysitename/files/filename) to no avail. Saw something to this effect for 4.7 (http://drupal.org/node/121282). I'm running 5.7 with the Node Import 1.6.

Any suggestions?

Comments

Robrecht Jacques’s picture

Does this help?

Upload (attachments) support
****************************

Added support for upload module.

 * Only one attachment can be specified.

 * You need to upload the file to files/ before doing the import.

 * The content of the column you map to Upload: File attachments must
   be the filename relative to files/ (or whatever you set the file
   directory path to).

For example:

 * Upload file1.txt to files/

 * Import a CSV file like:

   "Title","Body","File"
   "The title", "The body", "file1.txt"

 * Map the Title column to the Title field, the Body column to the Body
   field and the File column to the Upload: File attachments field.
bseybolt’s picture

OK. I messed up by including "files/" in the path. I removed it and I no longer get the error message. The import proceeds and I am able to create the nodes with a title and body, but no link to the file.

goodeit’s picture

I am having trouble importing files as well. My CCK imagefield works fine, and is relative to /files/images, but when I try to upload to a "PDF" field (type: file field), I get no errors, but nothing shows up under my node page or under node/edit indicating that there is an attachment.

shopgirl_11’s picture

Version: 5.x-1.6 » 6.x-1.0-rc4

Hi there,

Has anyone got this working? Importing node with attachments? I remember i read somwhere, the support for Node import with attachment will be released some time in April but up until now, no updates yet.

Please, can anyone advise if this feature can still be supported?

Thanks a lot.

Robrecht Jacques’s picture

Status: Active » Closed (duplicate)