From 5495ef8ddc3ae9e4995667649c96b5954bfd52e1 Mon Sep 17 00:00:00 2001
From: Jo Michael
Date: Sat, 7 Apr 2012 15:59:59 +0200
Subject: [PATCH 1/6] Added PHP 5.4+ session.upload_progress to documentation
---
Documentation.html | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/Documentation.html b/Documentation.html
index fdd519c9ea..dd08e4438f 100644
--- a/Documentation.html
+++ b/Documentation.html
@@ -3399,11 +3399,16 @@ RewriteRule .* - [F]
2.9 Seeing an upload progress bar
To be able to see a progress bar during your uploads, your server must
-have either the APC extension
- or the uploadprogress
- one. Moreover, the JSON extension has to be enabled in your PHP.
+ have the APC extension,
+ the uploadprogress
+ one, or you must be running PHP 5.4.0 or higher.
+ Moreover, the JSON extension has to be enabled in your PHP.
+
If using APC, you must set apc.rfc1867 to on in your php.ini.
+ If using PHP 5.4.0 or higher, you must set session.upload_progress.enabled
+ to 1 in your php.ini.
+
Known limitations
From 321b8cc8806d1a9f311515d73ef90edef8214633 Mon Sep 17 00:00:00 2001
From: Jo Michael
Date: Sat, 7 Apr 2012 16:02:47 +0200
Subject: [PATCH 2/6] Added width and height attributes to ajax throbber img.
---
libraries/display_import.lib.php | 6 +++---
server_status.php | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php
index 656f5844a0..da9479aaab 100644
--- a/libraries/display_import.lib.php
+++ b/libraries/display_import.lib.php
@@ -63,7 +63,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
complete = response.complete;
if (total==0 && complete==0 && percent==0) {
- $('#upload_form_status_info').html('
');
+ $('#upload_form_status_info').html('
');
$('#upload_form_status').css("display", "none");
} else {
$('#upload_form_status_info').html(' '+Math.round(percent)+'%, '+complete+'/'+total);
@@ -73,7 +73,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
if (finished==true) {
$('#importmain').css('display', 'none');
$('#import_form_status').css('display', 'inline');
- $('#import_form_status').html('
');
+ $('#import_form_status').html('
');
$('#import_form_status').load('import_status.php?message=true&'); // loads the message, either success or mysql error
- $('#upload_form_status_info').html('
');
+ $('#upload_form_status_info').html('
');
$('#upload_form_status').css("display", "none");