From 2cc7809fbc2e3fef24f213e2ef1e40fa54f1d05e Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 1 May 2008 16:18:58 +0000 Subject: Marcus Povey * Uploads and downloads now work. git-svn-id: https://code.elgg.org/elgg/trunk@614 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/actions/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php index 1f5107bf0..410fecc95 100644 --- a/mod/file/actions/upload.php +++ b/mod/file/actions/upload.php @@ -22,7 +22,7 @@ if ($result) { - $file->setFilename($_FILES['upload']['name']); + $file->setFilename($prefix.$_FILES['upload']['name']); $file->setMimeType($_FILES['upload']['type']); $file->open("write"); -- cgit v1.2.3