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

XF 1.1 Deleting the attachment via Attachment browser @ Admin doesn't remove the file on the server

Discussion in 'Troubleshooting and Problems' started by RoldanLT, Jan 16, 2013.

  1. RoldanLT

    RoldanLT Well-Known Member

    I manually deleted the attachment greater than 2mb file size...

    Using the attachment browser:

    But when I look at the server file manager:

    Still their are 2mb+ filesize..
    What I did is, I manually deleted all the xxxxxx.data file.

    How can I rebuild the attachment, to automatically remove the orphaned xxxxx.data file on the server.

    /public_html/internal_data/attachments/ - chmod 777
    /public_html/internal_data/attachments/0 - chmod 777
    /public_html/internal_data/attachments/0/xxx.data files - chmod 644 (Should I set them all to 777)
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is an hourly cron that runs which prunes unassociated and unused attachments. When you delete the attachment it simply decrements the counter which indicates how many attachments use that data file. Then the hourly cron checks for attachment data records which are used by 0 attachments and then physically deletes those data files.

    So just give it an hour. The data files should be automatically deleted.
    Evina, HWS and erich37 like this.
  3. RoldanLT

    RoldanLT Well-Known Member

    /public_html/internal_data/attachments/0/xxx.data files - chmod 644 (Should I set them all to 777)
  4. vVv

    vVv Guest

    I was wondering about this stuff too, because I have some threads where there is supposed to be attachments, but only shows "links" to them, and clicking those links to attachments gives me 404 errors. So I just deleted those threads.. Lol! I was wondering if some were just floating around though, either in database or internal_data and Data folders... I'd rather NOT be hosting hundreds, or thousands worth of MBs of attachments that aren't attached no where. haha
    Evina likes this.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It depends on your server configuration, but 777 directories and 644 files works fine on my server.
    Luis likes this.

Share This Page