1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Is it possible to mass change attachments?

Discussion in 'XenForo Questions and Support' started by Lone Wolf, Jun 4, 2015.

  1. Lone Wolf

    Lone Wolf Well-Known Member

    I'm using png files as attachments on promoted threads but the png files arent optimised for size. Is it possible for me to just drag and drop the optimised PNG files via ftp onto the relevant directory and overwrite the old PNG files rather than having to individually delete and re-upload each attachment?

    The optimised files will have the same name and file type so it would just be a question of 'overwrite'

    I'm not sure where to find the attachments, what directory, etc.

    Is this possible?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It's not that simple as the file names in the directories are obfuscated and the file size is stored in the database.

    So first you would need to identify each attachment by cross referencing the database tables, then overwrite it, then update the database.
     
    Lone Wolf likes this.
  3. Lone Wolf

    Lone Wolf Well-Known Member

    It would easier and quicker to just do it manually then?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.
     
    Lone Wolf likes this.
  5. Lone Wolf

    Lone Wolf Well-Known Member

    Thanks as always Broginja
     

Share This Page