Any luck with attachments?

bseybolt - June 25, 2008 - 20:58
Project:Node import
Version:5.x-1.6
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

Robrecht Jacques - June 28, 2008 - 09:35

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.

#2

bseybolt - July 11, 2008 - 15:50

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.

#3

goodeit - August 14, 2008 - 15:30

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.

 
 

Drupal is a registered trademark of Dries Buytaert.