aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 14:46:20 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 14:46:20 +0000
commitfc339abb476d569617fa0ae5b09dbeca0ac7b8bd (patch)
treea39c83c3bf97ca01286da7093339d14a13e0bc2d
parentf0c2428e28c77777292d38e43c14435db5ed28bb (diff)
downloadelgg-fc339abb476d569617fa0ae5b09dbeca0ac7b8bd.tar.gz
elgg-fc339abb476d569617fa0ae5b09dbeca0ac7b8bd.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Save to get the GUID git-svn-id: https://code.elgg.org/elgg/trunk@597 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/file/actions/upload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php
index 05b0150f6..18a6c388a 100644
--- a/mod/file/actions/upload.php
+++ b/mod/file/actions/upload.php
@@ -18,6 +18,7 @@
// Extract file from, save to default filestore (for now)
$prefix = "/file/";
$file = new ElggFile();
+ $file->save();
$file->setFilename($_FILES['upload']['name']);
$file->setMimeType($_FILES['upload']['type']);