From cabec2e1c8e468279f17bee9fb87f1676e8cec9a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 13 Jul 2013 22:30:54 +0200 Subject: Add profile page to allow changing the upload id limits Signed-off-by: Florian Pritz --- application/controllers/file.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'application/controllers/file.php') diff --git a/application/controllers/file.php b/application/controllers/file.php index 01836258a..fcb8717c5 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -542,7 +542,8 @@ class File extends CI_Controller { return; } - $id = $this->mfile->new_id(); + $limits = $this->muser->get_upload_id_limits(); + $id = $this->mfile->new_id($limits[0], $limits[1]); $hash = md5($content); $folder = $this->mfile->folder($hash); @@ -612,7 +613,8 @@ class File extends CI_Controller { } foreach ($files as $key => $file) { - $id = $this->mfile->new_id(); + $limits = $this->muser->get_upload_id_limits(); + $id = $this->mfile->new_id($limits[0], $limits[1]); $hash = md5_file($file['tmp_name']); // work around a curl bug and allow the client to send the real filename base64 encoded -- cgit v1.2.3-24-g4f1b