This is useful for debugging, we use it for issue #48
*/
$cfg['debug'] = false;
+/* Enable this debug flag to enforce the legacy (synchronous) file upload mechanism.
+ */
+$cfg['debug_enforce_legacy_upload'] = false;
+
/* Set Jirafeau's maximal upload chunk
* When Jirafeau upload a large file, Jirafeau sends several data chunks to fit server's capabilities.
* Jirafeau tries to upload each data chunk with the maximal size allowed by PHP (post_max_size and upload_max_filesize).
function check_html5_file_api ()
{
+<?php
+ if (isset($cfg['debug_enforce_legacy_upload']) && $cfg['debug_enforce_legacy_upload']) { ?>
+ // Enforce legacy upload is enabled through config!
+ return false;
+<?php
+ }
+?>
return window.File && window.FileReader && window.FileList && window.Blob;
}