Permalink
Browse files

fixed not using obj_start() which caused error when calling obj_end_c…

…lean() depending on php.ini error settings
  • Loading branch information...
1 parent de89c3d commit aa3edc5d3f4951f49209e7b1aec89586d68e5a06 @speich committed Nov 9, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 README.md
  2. +1 −0 speich.net/fileUploader/upload-controller.php
View
@@ -4,6 +4,6 @@ The file uploader currently uses dojo 1.7.1 and PHP 5.3. It works with Firefox 3
Multiple file uploading with pause/resume</a> on speich.net and
<a href="http://hacks.mozilla.org/2011/04/resumeupload/">How to resume a paused or broken file upload</a> on hacks.mozilla.org.
You can also check out the drag and drop demo at <a href="http://www.speich.net/articles/html5-uploader.php">HTML5 demo: Multiple file upload with drag and drop</a>.</p>
-<p>If you have any questions, please post them on my website at <a href="http://www.speich.net/articles/2011/03/03/dojo-demo-multiple-file-uploading-with-pauseresume/">Multiple file uploading with pause/resume</a></p>
+<p>If you have any questions, please post them on my website at <a href="http://www.speich.net/articles/2011/03/03/dojo-demo-multiple-file-uploading-with-pauseresume/">Multiple file uploading with pause/resume</a>.</p>
+ Resume is only supported on Firefox 4 or greater.
+ The uploader is in demo mode, which does not save anything to the server. Set demo mode to false on your own risk and only if you now what you are doing!
@@ -43,6 +43,7 @@ function handleShutdown() {
// set_error_handler() does not catch fatal errors such as exceeding the allowed memory size
// -> use register_shutdown_function() in addition
+ob_start();
set_error_handler('handleError', E_ALL);
register_shutdown_function('handleShutdown');

0 comments on commit aa3edc5

Please sign in to comment.