X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/2cca8753a5d894f285a3dfbbac7bb7f76baf3cf9..c3c7c86917d4c01c0cb2188dba77e4119788e81f:/lib/functions.js.php?ds=sidebyside diff --git a/lib/functions.js.php b/lib/functions.js.php index 1527d01..ebf8531 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -577,8 +577,7 @@ function upload (max_size) { var one_time_checkbox = document.getElementById('one_time_download'); var one_time = one_time_checkbox !== null ? one_time_checkbox.checked : false; - if (check_html5_file_api () - && document.getElementById('file_select').files[0].size >= max_size) + if (check_html5_file_api ()) { async_upload_start ( max_size,