@overmap-ai/core 1.0.50-bulk-form-submission.0 → 1.0.50-bulk-form-submission.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/overmap-core.js
CHANGED
|
@@ -4807,15 +4807,16 @@ class BaseApiService {
|
|
|
4807
4807
|
class AttachmentService extends BaseApiService {
|
|
4808
4808
|
processPresignedUrls(presignedUrls) {
|
|
4809
4809
|
for (const [sha1, presignedUrl] of Object.entries(presignedUrls)) {
|
|
4810
|
+
console.debug(sha1, presignedUrl);
|
|
4810
4811
|
void this.enqueueRequest({
|
|
4811
4812
|
url: presignedUrl.url,
|
|
4812
|
-
description: "Upload file",
|
|
4813
|
+
description: "Upload file to S3",
|
|
4813
4814
|
method: HttpMethod.POST,
|
|
4814
4815
|
isExternalUrl: true,
|
|
4815
4816
|
isAuthNeeded: false,
|
|
4816
4817
|
attachmentHash: sha1,
|
|
4817
4818
|
// TODO: can we use the sha1 as the blocker?
|
|
4818
|
-
blockers: [`s3-${
|
|
4819
|
+
blockers: [`s3-${presignedUrl.fields.key}`],
|
|
4819
4820
|
blocks: [sha1],
|
|
4820
4821
|
s3url: presignedUrl
|
|
4821
4822
|
});
|