Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Nicholas 8 posts 28 karma points
    Sep 29, 2010 @ 19:58
    John Nicholas
    0

    replace files with same name?

    Would it be possible to have this replace files with the same name? I have a site with 1000s of images that were uploaded through Desktop Media Uploader. Something happened where the the files in media are gone but the images are connected to content now. If I try to re upload an image it creates a new record for it so now I have something like

    /media/50135/12345_a.jpg <-- no image or folder in filesystem

    /media/61234/12345_a.jpg <-- now image exists but content is still pointing at the bad record above

    I'm hoping I can reupload these in large batches where it knows to put the 12345_a.jpg in the folder where the first one was so the existing records work

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Sep 30, 2010 @ 09:56
    Matt Brailsford
    0

    Hi John,

    It would be possible to update DMU to overwite existing files (which is something I plan on adding) but I don't have a definate timescale right now I'm affraid.

    I'm not entirley sure it would help in your siutation though, as all it would really do is look for an existing file reference in the database (as the paths on the file system would never match, and even if they did match, it's not to say it's in the same directory as the file to be uploaded so should be replaced). So if your database records have gone, it wouldn't have a record to update so would create a new record anyway.

    Best I could suggest is to look how the media items are defined in the database, and try an re-inject them back in, based upon the folder ID's. Unfortunatley I don't have anything that would do this in an automated way.

    Matt

     

Please Sign in or register to post replies

Write your reply to:

Draft