Add From Server (1.1 Update)

Plugin Homepage: http://dd32.id.au/wordpress-plugins/add-from-server/

Please note that a update has been made to this plugin.

Changelog (for 1.1):

  • Fixed a bug which causes the original import file to be deleted upon removing from the media library, The file in /uploads/2008/03/ remains however.
    Will now delete the file in the uploads folder instead of the original imported file, However, Be warned, files previously imported WILL remain as they are, and the original import file will be deleted(if you delete from the media library)

(I’m still awaiting for the plugin to be granted access to WordPress.org/extend/plugins/… along with another 2 plugins)

11 thoughts on “Add From Server (1.1 Update)”

  1. let me ask one question: these imported files, get copied where?
    if I then have 2 copies, how about a button that fixes all links going to my original files, going to the newly imported file, so I can delete the original files?

  2. I just found another problem:

    I imported some 16 pictures, from my old upload folder and the result is weird, the newly imported fiel, has had its filename changed like this:

    http://pacura.ru/wordpress/wp-content/uploads/2008/03/varwwwweb6webwordpresswp-contentuploads200604p1000250_1.jpg

    the link works, but I do not want my files renamed so that the filename includes the old path :-)

    the file was located in: var/www/web6/web/wordpress/wp-content/uploads/2006/04/p1000250_1.jpg

    I will stop now and wait for an answer – before I go ahead and import hundreds of pictures wrongly.

  3. oh, and coudl your plugin, modify the date also? I mean in the example above, the original picture had been uploaded in april 2006 => after the import I find it in march 2008 :-(

  4. let me ask one question: these imported files, get copied where?

    They get copied into your Uploads folder, The original files remain where they originally were.

    the newly imported fiel, has had its filename changed like this:

    That is weird, I’m not sure why thats happening, I’ll have a play later tonight and make some changes. I’ve got some other changes planned to add in there too.

    the original picture had been uploaded in april 2006 => after the import I find it in march 2008

    I’ll have a look at it, I’m using the WP upload functions internally, soit may not be possible, but i’ll look into it closer

  5. also if I go to manage => media library then below “appears with” => it says: “no title” I click on no title, assuming I could edit its title, and get this error:

    You attempted to edit a post that doesn’t exist. Perhaps it was deleted?

    the url changes to: http://pacura.ru/wordpress/wp-admin/post.php?action=edit&post=-1206700048

    it seems the media library tries to edit a post?

    this could just be related to wordpress itsself not your plugin, but maybe you can help.

  6. thx for your quick answer. if you cannot determine hwats wrong, I could give you a temporary admin account.

    let me ask one question: these imported files, get copied where?

    They get copied into your Uploads folder, The original files remain where they originally were.

    BUT my original folder is the same as the uploads folder !? I am confused… I used to and still continue uploading into wp-content/uploads having selected the option to sort uploaded files into a year/month structure…

  7. this could just be related to wordpress itsself not your plugin, but maybe you can help.

    Thats a bug in WordPress.. Allthough i thought it was supposed to be fixed. I’ll pass it on to the relevant Trac bug report.
    Actually, That “(no title)” refers to the Post which the image is attached to.
    If you want to edit the attachments title, Click on its name under the media column.

    . if you cannot determine hwats wrong

    Allready found the error, I think something might’ve changed in the WP code since i wrote the plugin, I’ve also set it to save files in the same month folder as what the file is dated.

    BUT my original folder is the same as the uploads folder !?

    Then i too am confused as to what your trying to achieve.
    The plugin is designed to import files which are not currently in the WordPress Media library, Ie. Are not in your uploads folder.

    Eg. I might use it to import files from
    /public_html/random_images/image1.jpg
    to my WordPress media library.

  8. hmm…. been using this wordpress blog for roughly 3 years and all my pictures are inside wp-content/upload/year/month structure.

    nevertheless when I browse to the media library I do not see these pictures as they have not been uploaded with the media library.

    my thoughts were:

    If we now have a nice media library to manage uploaded media, why not import all my old uploads so I can also manage them from this interface.

    was that a wrong thought?

  9. If we now have a nice media library to manage uploaded media, why not import all my old uploads so I can also manage them from this interface.

    As far as i know, All uploads after 2.1 should be included in the new manager.. (And possibly ones from earlier; Its just that i never used WP until then)

    I’m writing in some changes now to reconise if the file your trying to import is from the uploads folder, And if it it, to not duplicate the file.

  10. oops I found the error in my thinking:

    WordPress 2.5 includes a new Media manager, However, It only knows about files which have been uploaded via the WordPress interface, Not files which have been uploaded via other means(eg, FTP).

    I have NOT used the builtin upload manager isntead have been relying onto plugins like imagemanager and later flexible upload which can also use the same structure as wordpress :-(

    I guess the strange filename results from me trying to import the file into the exact same position it was before :-( – any ideas hwo I could manage to import these files into the media library? I could temporarily move them somewhere else and then import? so after importing they would be in the exact same position!?

Leave a Reply

Your email address will not be published. Required fields are marked *