summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v1
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/api/v1')
-rw-r--r--application/controllers/api/v1/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php
index a10aaf63a..266b1aff8 100644
--- a/application/controllers/api/v1/file.php
+++ b/application/controllers/api/v1/file.php
@@ -34,7 +34,7 @@ class file extends \controllers\api\api_controller {
foreach ($files as $file) {
$id = $this->mfile->new_id($limits[0], $limits[1]);
- \service\files::add_file($id, $file["tmp_name"], $file["name"]);
+ \service\files::add_uploaded_file($id, $file["tmp_name"], $file["name"]);
$ids[] = $id;
$urls[] = site_url($id).'/';
}