]> git.p6c8.net - jirafeau.git/blobdiff - lib/functions.js.php
Config option to enforce "classic download" without HTML5 File API
[jirafeau.git] / lib / functions.js.php
index b8888a69f90114cba914523fc738301e46e93fd7..c2413a8ecfc8757757c0536857eda3cfd46a9886 100644 (file)
@@ -468,7 +468,17 @@ function classic_upload (file, time, password, one_time)
 
 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;

patrick-canterino.de