Index: openacs-4/packages/proctoring-support/www/resources/proctored-page.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/proctoring-support/www/resources/proctored-page.js,v diff -u -r1.1.2.36 -r1.1.2.37 --- openacs-4/packages/proctoring-support/www/resources/proctored-page.js 7 May 2024 07:40:26 -0000 1.1.2.36 +++ openacs-4/packages/proctoring-support/www/resources/proctored-page.js 25 Jun 2024 15:33:38 -0000 1.1.2.37 @@ -144,7 +144,18 @@ // and abort the session. // let latestSuccessfulUploadTimeout; -function checkUpload() { +function checkUpload(formData) { + // + // We enforce this timeout only for image uploads for 2 reasons: + // 1) images are sent consistently throughout the session, while + // audios not + // 2) if audios were produced often due to noise, but images were + // not, we would not be able to tell the difference + // + if (formData && formData.get('type') !== 'image') { + return; + } + clearTimeout(latestSuccessfulUploadTimeout); latestSuccessfulUploadTimeout = setTimeout(function () { @@ -190,7 +201,7 @@ // Success: reschedule the upload 1s from now. // reschedule(1000); - checkUpload(); + checkUpload(formData); } else { // // Proctoring is over: redirect to the unproctored