diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-06-25 16:45:17 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-07-20 12:52:43 +0100 |
commit | d3bcafe6185c30d2e2bfecbd919568a8197818bc (patch) | |
tree | af817c020a2087a8474aadf68dd3ef40f4cefd22 /apps/files | |
parent | f573659b3aba706e55e312093954cffbc5373a8b (diff) | |
download | nextcloud-server-d3bcafe6185c30d2e2bfecbd919568a8197818bc.tar.gz nextcloud-server-d3bcafe6185c30d2e2bfecbd919568a8197818bc.zip |
Update .user.ini when setting upload size limit
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/admin.php | 3 | ||||
-rw-r--r-- | apps/files/templates/admin.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php index 70f537d0db9..349c27ff742 100644 --- a/apps/files/admin.php +++ b/apps/files/admin.php @@ -42,9 +42,10 @@ if($_POST && OC_Util::isCallRegistered()) { } $htaccessWritable=is_writable(OC::$SERVERROOT.'/.htaccess'); +$userIniWritable=is_writable(OC::$SERVERROOT.'/.user.ini'); $tmpl = new OCP\Template( 'files', 'admin' ); -$tmpl->assign( 'uploadChangable', $htaccessWorking and $htaccessWritable ); +$tmpl->assign( 'uploadChangable', ($htaccessWorking and $htaccessWritable) or $userIniWritable ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); // max possible makes only sense on a 32 bit system $tmpl->assign( 'displayMaxPossibleUploadSize', PHP_INT_SIZE===4); diff --git a/apps/files/templates/admin.php b/apps/files/templates/admin.php index adf756a12be..822fc779bd3 100644 --- a/apps/files/templates/admin.php +++ b/apps/files/templates/admin.php @@ -10,6 +10,8 @@ <br/> <input type="hidden" value="<?php p($_['requesttoken']); ?>" name="requesttoken" /> <?php if($_['uploadChangable']): ?> + <?php p($l->t('With PHP-FPM this value may take up to 5 minutes to take effect after saving.')); ?> + <br/> <input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings" value="<?php p($l->t( 'Save' )); ?>"/> <?php else: ?> |