• Hi all,

    I’ve upgraded to 2.5 this morning and I am mostly very happy.

    I’ve noticed the new media library and I find it great. I would like to import 360 images into it (from my previous blog posts). I’ve created the appropriate directory structure i.e. wp-content/uploads/year/month/filename and copied the 360 images but I can’t access them from the Add Media window.

    Any idea what I should do next to make WordPress become aware of the images?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You cannot upload images directly using FTP and have it work. WordPress is only aware of the images that are uploaded through its own upload functions.

    Thread Starter Avinash Meetoo

    (@avinashm)

    Is this database-related?

    I have gone through the tables but I can’t find any table specifically related to the Media Library:

    mysql> show tables;
    +--------------------------+
    | Tables_in_wordpress_db   |
    +--------------------------+
    | wp_ak_popularity         |
    | wp_ak_popularity_options |
    | wp_comments              |
    | wp_falbum_cache          |
    | wp_links                 |
    | wp_openid_associations   |
    | wp_openid_identities     |
    | wp_openid_nonces         |
    | wp_openid_settings       |
    | wp_options               |
    | wp_postmeta              |
    | wp_posts                 |
    | wp_term_relationships    |
    | wp_term_taxonomy         |
    | wp_terms                 |
    | wp_usermeta              |
    | wp_users                 |
    +--------------------------+

    Thread Starter Avinash Meetoo

    (@avinashm)

    Hi Otto42,

    Is it possible (even by executing some custom SQL) to make WordPress 2.5 believe that those imported images are part and parcel of the Media Library?

    Webrocker

    (@webrocker)

    There are the fields “post_type” and “post_parent”, “post_mime_type” and
    “guid” in the wp_posts table.
    for example:

    post_type=attachment
    post_mime_type=image/gif
    guid=[yourblogurl]/blog/wp-content/uploads/2006/01/example.gif

    I have no idea how to re-import my mediafiles from older post that were uploaded via a plugin into the current media-library, though.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    WordPress makes a separate post for each image, along with various metadata. It also makes thumbnails and such. So, in theory, if you were to replicate all those steps, sure, you could make it work. But simply uploading the files through the interface would be far easier.

    Thread Starter Avinash Meetoo

    (@avinashm)

    Yeah. But I have 360 of them 🙂

    Anyway, it’s not a massive issue (as the images are from posts I’ve already written and posted).

    Thanks all for your help.

    Evita

    (@evita)

    This plugin can help you.

    Thread Starter Avinash Meetoo

    (@avinashm)

    Thanks Evita.

    I’ve downloaded it and I get some errors. I’ll look into those and try to find a solution.

    jokkesvin

    (@jokkesvin)

    Hi. Is it possible to put a custom time & date stamps on the images you upload through the Add From Server plug-in?

    I have some images outside the new folder structure (in the root of “uploads”). I would like them to be in the right folder, which would be: “uploads/2006/01” and not be uploaded to the current date & time.

    Anyone?

    moserw

    (@moserw)

    Hi Guys,

    Use this plugin from http://dd32.id.au/wordpress-plugins/add-from-server/

    Works great and I have done so for my image library.

    moserw

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Import (lots of) images into WordPress 2.5 Media Library’ is closed to new replies.