aboutsummaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-07 03:03:09 -0700
committerFriendika <info@friendika.com>2011-07-07 03:03:09 -0700
commitd187c39d5dbe70df5dcc8c6ec36453474a7b17f6 (patch)
tree95f6b014154b1af3595cf5a2c2e6cd712f5dc6ec /addon
parentd7b5a606fb7992cfc29fac4bc19429da08972364 (diff)
downloadvolse-hubzilla-d187c39d5dbe70df5dcc8c6ec36453474a7b17f6.tar.gz
volse-hubzilla-d187c39d5dbe70df5dcc8c6ec36453474a7b17f6.tar.bz2
volse-hubzilla-d187c39d5dbe70df5dcc8c6ec36453474a7b17f6.zip
don't warn about php upload limits. nothing can be done by the user.
Diffstat (limited to 'addon')
-rw-r--r--addon/js_upload/js_upload.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/addon/js_upload/js_upload.php b/addon/js_upload/js_upload.php
index 8691389fe..06a907603 100644
--- a/addon/js_upload/js_upload.php
+++ b/addon/js_upload/js_upload.php
@@ -14,9 +14,6 @@
* Uses Valum 'qq' Uploader.
* Module Author: Chris Case
*
- * Prior to enabling, ensure that you have a directory 'uploads'
- * which is writable by the web server.
- *
*/
@@ -254,8 +251,6 @@ class qqFileUploader {
$this->allowedExtensions = $allowedExtensions;
$this->sizeLimit = $sizeLimit;
- $this->checkServerSettings();
-
if (isset($_GET['qqfile'])) {
$this->file = new qqUploadedFileXhr();
} elseif (isset($_FILES['qqfile'])) {
@@ -266,15 +261,6 @@ class qqFileUploader {
}
- private function checkServerSettings(){
- $postSize = $this->toBytes(ini_get('post_max_size'));
- $uploadSize = $this->toBytes(ini_get('upload_max_filesize'));
- logger('mod/photos.php: qqFileUploader(): upload_max_filesize=' . $uploadSize , 'LOGGER_DEBUG');
- if ($postSize < $this->sizeLimit || $uploadSize < $this->sizeLimit){
- $size = max(1, $this->sizeLimit / 1024 / 1024) . 'M';
- die("{'error':'increase post_max_size and upload_max_filesize to $size'}");
- }
- }
private function toBytes($str){
$val = trim($str);