1

Is there any way to see the past filenames that have been imported by the Feeds module (using Drupal 7)?

I am trying to warn people if they try to import a file that has already been uploaded by Feeds.

2 Answers 2

1

Imported files are stored in default/files/feeds by default I think so you could test on that first.

Feeds does create a watchdog event but it doesn't persist.

If you attach feeds to a node then you have several advantages. You can re run the import. And more interestingly you can access the node via Views and probably Rules. With those two you could build something with a Rules trigger event on the node save or Feeds import that would check for an existing node with a matching file.

If you can't get that working then post back and I'll try to make an example.

2
  • How would you attach a feed to a node?
    – Diana
    Commented Aug 8, 2015 at 21:27
  • Feed > Basic settings > Attach to content type. I recommend that you first create a special content type just for this purpose. Then, when a user needs to import something, they should be directed to the node add for that content type. Commented Aug 8, 2015 at 21:34
1

I added this patch and it saves the filenames in the log now https://www.drupal.org/files/issues/1045818-feeds_log_filename.patch

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.