]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
[BUGFIX] show proper error on classic upload failure
authorJerome Jutteau <jerome@jutteau.fr>
Sun, 15 Nov 2020 22:53:27 +0000 (23:53 +0100)
committerJerome Jutteau <jerome@jutteau.fr>
Sun, 15 Nov 2020 22:53:27 +0000 (23:53 +0100)
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
lib/functions.js.php

index 5b4ad60c6c2d86f88172b283a15c4473ea7da9f4..1527d0159d14a4f50dfbdf8b8b460a6a4a0f6d80 100644 (file)
@@ -370,6 +370,10 @@ function classic_upload (file, time, password, one_time, upload_password)
 
             show_link (res[0], res[1], res[2], expiryDate);
         }
 
             show_link (res[0], res[1], res[2], expiryDate);
         }
+        else
+        {
+            pop_failure ("<?php echo t("ERR_OCC"); ?>");
+        }
     }
     req.open ("POST", 'script.php' , true);
 
     }
     req.open ("POST", 'script.php' , true);
 

patrick-canterino.de