Needs work
Project:
File import
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jul 2009 at 23:47 UTC
Updated:
7 Nov 2011 at 18:27 UTC
Jump to comment: Most recent file
We had a need to batch-import file attachments from an old site, and create a node per attachment.
As most of these nodes were .doc, .pdf or .txt, we also considered automatically extracting the node body from the document.
This is only partial code, but we're continuing our work on it and hope to improve it further.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 532754-file_import-directory_import.patch | 18.74 KB | xurizaemon |
| #1 | 532754-file_import-batch.tgz | 15.29 KB | xurizaemon |
Comments
Comment #1
xurizaemonOK, so there are a lot of TODO items sitting in this patch. But hopefully it's a step in the right direction.
Some notes:
Some changes / future steps which this module suggests:
Attached are the patch and a downloadable copy which you can experiment with easily.
To try it out:
I know the UI has some gaping holes and I'd really welcome any complaints and suggestions for how this could be made more awesome. Please test and give feedback!
Thanks
Comment #2
netbear commentedHave any further improvements in this direction?
Comment #3
xurizaemonReally wants testing and feedback.
It worked for us, which in our case was a one-off import of a large existing document structure (many hundreds of MB of old mailing list attachments), but I don't think the feature is ready for prime time due to UI issues.
Comment #4
xurizaemonActually - needs WORK, not needs REVIEW. You can help by giving feedback and suggestions.
Comment #5
EvanDonovan commentedI just tested this. Seems to be OK. For me at least, it doesn't show up as a MENU_LOCAL_TASK, just a callback. No idea why.
I don't think it matters that the UI is not great. Quick & dirty does the trick for me in this case, because I just want to import a bunch of stuff & clean it up later. It's not really possible to predict beforehand what good node titles would be.
I think that if you wanted a better UI, you could look at Audio Import, part of drupal.org/project/audio.
You should turn the tarball as a sandbox, I think - then it could have its own issue queue/branches, etc.
Comment #6
xurizaemonThanks Evan, been a while since I even thought about this. Done.
http://drupal.org/sandbox/grobot/1216958
Comment #7
EvanDonovan commentedNice. Ironically, my boss told me after I found this that we would just have the file attachments manually added by interns, so I don't know if I'll have time to test more. But probably best in a sandbox regardless, now that they are easier to see on d.o. than pre-Git migration.
Comment #8
xurizaemonHeh ... Nw. Yes a good prompt. Later today saw a lullabot article on bulk image uploads which looks like it might help similar cases.
Tell me though, do you see "revision 1 by evan donovan" under the issue summary heading? Are you aware of any special issue editing powers that your d.o account has? Thats new to me.
EDIT: The 'revision X by {last_comment_author}' is: #1217286: Posting a comment changes too many issue node revision properties
Comment #9
EvanDonovan commentedIt says "Revision 1 by grobot for me". I think it is a bug with d.o.
Comment #10
ggalan1173 commentedHi, Maybe I'm missing something.
I access /admin/content/file_import/batch and /admin/content/file_import and I see the same form.
And it's not letting me create a node for each file uploaded.
Thanks in advance