diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-01 16:18:58 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-01 16:18:58 +0000 |
commit | 2cc7809fbc2e3fef24f213e2ef1e40fa54f1d05e (patch) | |
tree | 2433e32c58480e2afac82ea13c33ece51bd91b1f /mod/file/actions/upload.php | |
parent | e5ed5ee17f17afd74d02a4e6b479eb681a486877 (diff) | |
download | elgg-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.php | 2 |
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"); |