aboutsummaryrefslogtreecommitdiff
path: root/mod/file/actions/upload.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 16:18:58 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 16:18:58 +0000
commit2cc7809fbc2e3fef24f213e2ef1e40fa54f1d05e (patch)
tree2433e32c58480e2afac82ea13c33ece51bd91b1f /mod/file/actions/upload.php
parente5ed5ee17f17afd74d02a4e6b479eb681a486877 (diff)
downloadelgg-2cc7809fbc2e3fef24f213e2ef1e40fa54f1d05e.tar.gz
elgg-2cc7809fbc2e3fef24f213e2ef1e40fa54f1d05e.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Uploads and downloads now work. git-svn-id: https://code.elgg.org/elgg/trunk@614 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/actions/upload.php')
-rw-r--r--mod/file/actions/upload.php2
1 files changed, 1 insertions, 1 deletions
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");