aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/file/actions/upload.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php
index 18a6c388a..255d8ef06 100644
--- a/mod/file/actions/upload.php
+++ b/mod/file/actions/upload.php
@@ -18,7 +18,13 @@
// Extract file from, save to default filestore (for now)
$prefix = "/file/";
$file = new ElggFile();
- $file->save();
+ $result = $file->save();
+
+ if ($result)
+ system_message(elgg_echo("file:saved"));
+ else
+ system_message(elgg_echo("file:uploadfailed"));
+
$file->setFilename($_FILES['upload']['name']);
$file->setMimeType($_FILES['upload']['type']);