aboutsummaryrefslogtreecommitdiff
path: root/mod/file/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/download.php')
-rw-r--r--mod/file/download.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/file/download.php b/mod/file/download.php
new file mode 100644
index 000000000..b2acdffec
--- /dev/null
+++ b/mod/file/download.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Elgg file download.
+ *
+ * @package ElggFile
+ */
+require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+// Get the guid
+$file_guid = get_input("file_guid");
+
+forward("file/download/$file_guid");