Skip to content

Commit

Permalink
Merge pull request #3821 from tloncorp/hm/fix-digital-ocean-uploads
Browse files Browse the repository at this point in the history
storage-actions: add required header for digital ocean
  • Loading branch information
arthyn authored Aug 2, 2024
2 parents a7cc2d7 + c0cb43c commit 2ef6de1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
12 changes: 2 additions & 10 deletions apps/tlon-mobile/ios/Landscape.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1837,11 +1837,7 @@
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
OTHER_LDFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down Expand Up @@ -1934,11 +1930,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
OTHER_LDFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down
2 changes: 1 addition & 1 deletion apps/tlon-mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ SPEC CHECKSUMS:
sqlite3: f163dbbb7aa3339ad8fc622782c2d9d7b72f7e9c
tentap: fc7669734b4dea745d6e56f57f5c7dc4fc2977bc
UMAppLoader: 5df85360d65cabaef544be5424ac64672e648482
Yoga: 64cd2a583ead952b0315d5135bf39e053ae9be70
Yoga: 1b901a6d6eeba4e8a2e8f308f708691cdb5db312

PODFILE CHECKSUM: 0cb7a78e5777e69c86c1bf4bb5135fd660376dbe

Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/store/storage/storageActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const performUpload = async (asset: ImagePickerAsset) => {
await uploadFile(signedUrl, resizedAsset.uri, {
'Content-Type': asset.mimeType ?? 'application/octet-stream',
'Cache-Control': 'public, max-age=3600',
'x-amz-acl': 'public-read', // necessary for digital ocean spaces
});
return config.publicUrlBase
? new URL(fileKey, config.publicUrlBase).toString()
Expand Down

0 comments on commit 2ef6de1

Please sign in to comment.