From 5c49b4a3979c10795ece371da80b617ca2131d75 Mon Sep 17 00:00:00 2001 From: Jay Hodgson Date: Tue, 25 Jul 2023 10:00:47 -0700 Subject: [PATCH] SWC-6502: upload issue with new CSP --- .../org/sagebionetworks/web/client/widget/aws/AwsSdk.java | 6 ++---- src/main/webapp/Portal.html | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/sagebionetworks/web/client/widget/aws/AwsSdk.java b/src/main/java/org/sagebionetworks/web/client/widget/aws/AwsSdk.java index f6fb029bca..39c1168e93 100644 --- a/src/main/java/org/sagebionetworks/web/client/widget/aws/AwsSdk.java +++ b/src/main/java/org/sagebionetworks/web/client/widget/aws/AwsSdk.java @@ -89,11 +89,9 @@ private static native void _upload( var listener = function(err, data) { if (err) { //error - console.log("Upload error, retrying:", err.code, err.message); + console.log("Upload error", err.code, err.message); upload.abort(); - setTimeout(function() { - upload.send(listener); - }, 5000); + callback.@org.sagebionetworks.web.client.widget.upload.S3DirectUploadHandler::uploadFailed(Ljava/lang/String;)(err.message); } else { //success callback.@org.sagebionetworks.web.client.widget.upload.S3DirectUploadHandler::uploadSuccess()(); diff --git a/src/main/webapp/Portal.html b/src/main/webapp/Portal.html index 7758bf032f..8976913af1 100644 --- a/src/main/webapp/Portal.html +++ b/src/main/webapp/Portal.html @@ -11,7 +11,7 @@