*/
$cfg['debug'] = false;
+/* Enable this flag to enforce the classic upload without the HTML5 File API
+ * Only set to "true", if you know what you're doing!
+ */
+$cfg['debug_enforce_classic_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 ($cfg['debug_enforce_classic_upload']) {
+?>
+ return false;
+<?php
+ } else {
+?>
return window.File && window.FileReader && window.FileList && window.Blob;
+<?php
+ }
+?>
}
var async_global_transfered = 0;