From 6da47555e040468e582ea73c501197d99689d07d Mon Sep 17 00:00:00 2001 From: Fyorl Date: Fri, 10 Aug 2012 13:13:13 +0100 Subject: [PATCH] [feature/attach-dl] Remove the archive after it's downloaded PHPBB3-11042 --- phpBB/download/file.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index a5d7eada3f..cd365767c2 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -410,5 +410,6 @@ else $compress->close(); phpbb_increment_downloads($db, $attachment_ids); $compress->download($store_name, $archive_name); + unlink("{$phpbb_root_path}store/{$store_name}{$archive}"); file_gc(); }