summaryrefslogtreecommitdiff
path: root/modules/rest/controllers/rest.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rest/controllers/rest.php')
-rw-r--r--modules/rest/controllers/rest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php
index 52d9925b..624a02a0 100644
--- a/modules/rest/controllers/rest.php
+++ b/modules/rest/controllers/rest.php
@@ -69,6 +69,7 @@ class Rest_Controller extends Controller {
$request->params = (object) $input->post();
if (isset($_FILES["file"])) {
$request->file = upload::save("file");
+ Event::add("system.shutdown", create_function("", "unlink(\"{$request->file}\");"));
}
break;
}