This is an add-on module I wrote for node_export that handles exporting and importing nodes containing:

  • CCK FileFields
  • Upload module attachments
  • Images, ie: image nodes

The code can do file exports in 3 modes:

  1. Local, using original upload path (unaltered)
  2. Local, with a copy of the uploaded file placed in a separate directory (eg: /sites/all/file-exports)
  3. Remote, file exports are done via URL and downloaded by the site importing the node

This code hasn't been tested very thoroughly! All feedback / patches welcome!

I have been mostly using Remote mode, so it should be less buggy than the rest :-).

CommentFileSizeAuthor
node_export_file.tar_.gz2.27 KBJames Andres

Comments

danielb’s picture

I haven't tried it out yet, but are you interested in contributing this to the node_export project? Or would you prefer to start a seperate project?

James Andres’s picture

If it is all the same to you, I think it makes sense to include this in the node_export project. Primarily because this module is a big pain point for most node_export users. It would be a hassle to download a separate module every time you used node_export.

danielb’s picture

Yup no worries, when I get a chance I'll go through this, add it to CVS, and give you access to update it if needed.

James Andres’s picture

Sounds good Daniel. Thanks for your assistance!

danielb’s picture

Status: Needs review » Fixed

ok I've added it in
I've renamed export.module to node_export.module and i've called your module node_export_filefield.module
so I hope this change doesn't cause too many problems!
If you need to update it you have CVS access now.

James Andres’s picture

Great! I've got one more in the pipeline also, some integration with the Services module. I'll keep you posted :-)

Status: Fixed » Closed (fixed)

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