removed temp files in post attachments