[wp-hackers] Grouping uploaded media items and bulk ( programmatic ) upload method perhaps
Haluk Karamete
halukkaramete at gmail.com
Tue Nov 23 17:53:12 UTC 2010
@scribu
Thank you on this; http://wordpress.org/extend/plugins/add-from-server/
But is it possible to achieve my original task completely avoiding a
web interface and doing it the following way;
1- Copy and paste the files ( the thousands of files [images] from the
current server's uploads folder ) into wp-uploads
2- Then write a script ( I'm most confortable with ASP) to read the
meta data of those images from our current CMS>SQL table to port/map
it into WordPress tables.
This method would require programming but it is OK with me.
To pull this off, first part requires no expertise as it is as simple
as copying one folder from one location into another. ( since the
current wp-uploads folder is currently empty, there is no issues of
overwriting any file, a simple copy-paste will do the job in a matter
of an hour or so. )
Second part would require the knowledge of what happens when a file is
uploaded into wp as to which table(s) and field(s) get modified. I
just need to map data from the current SQL.
But to take care of the grouping, I guess I'm gonna have to look into
http://wordpress.org/extend/plugins/media-tags/ plug in which was
suggested by Paul. But since I do not know the inner-workings of this
particular plug-in in the way how he manages the media-tag portion, I
don't know if it would be worthwhile to spend time in it.
@Paul
Thank you for your suggestion. In your opinion, do you think I can
create those media-tags programmatically? It looks like I can use the
media-tags as folder names. Assume my current images folder on the old
server has sub folders as people, animals, plants, then I would just
add people as a media-tag correct. And to pull the pictures such as
Obama, I'd type then Obama since that info would be stored in
"caption" or "title" in the wp-uploads table.
@all
Currently my images are grouped in folders. Does wp-uploads folder
store all images in one layer or does it support folder's in there as
well? In other words, will I be able to have
wp-uploads/old-server-images/people
wp-uploads/old-server-images/animals
wp-uploads/old-server-images/plants ?
On Tue, Nov 23, 2010 at 8:07 AM, scribu <mail at scribu.net> wrote:
> On Tue, Nov 23, 2010 at 5:37 PM, Haluk Karamete <halukkaramete at gmail.com>wrote:
>
>> Obvioulsy, we do not want to re-upload those images one by one using
>> wp admin route. Any road map ideas? That's challenge #1.
>>
>
> You can use this plugin:
>
> http://wordpress.org/extend/plugins/add-from-server/
>
>
> And challenge #2, as far as I see, I cannot group/categorize those
>> images. images can only be tagged, there is no way on media
>> upload/gallery sections in the admin interface to see the existing
>> groups/categories that those uploaded fiels are in. Am I correct? Is
>> this how it is with WordPress? I appreciate it if you toss some tips
>> in dealing with this.
>>
>
> You can register a custom taxonomy for attachments, and I think there is a
> filter for displaying the terms in the single attachment editor screen.
> Also, on the list screen, you can register a custom column.
>
> See
> http://core.trac.wordpress.org/attachment/ticket/14579/test-list-tables.php
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list