diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-07-13 22:30:54 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-07-13 22:58:07 +0200 |
commit | cabec2e1c8e468279f17bee9fb87f1676e8cec9a (patch) | |
tree | 9caf931dbf8edd67470a778493ac2740049c3c90 /application/controllers/file.php | |
parent | 2015e32e3bd6922d0697a875ecdc810243c887f0 (diff) |
Add profile page to allow changing the upload id limits
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 6 |
1 files changed, 4 insertions, 2 deletions
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 |