Minor cleanup.

This commit is contained in:
Patrick Fic
2025-02-28 10:15:34 -08:00
parent 023de62244
commit ca93c0900c
5 changed files with 22 additions and 27 deletions

View File

@@ -22,7 +22,7 @@ export const handleUpload = async (ev, context) => {
).blob();
let extension = imageData.localUri.split(".").pop();
//Default to Cloudinary in case of split treatment errors.
//Default to Cloudinary in case of split treatment errors.
let destination =
splitClient?.getTreatment("Imgproxy") === "on" ? "imgproxy" : "cloudinary";
@@ -135,7 +135,6 @@ export const uploadToImgproxy = async (
},
};
console.log("Uploading to S3", key, preSignedUploadUrlToS3, file, options);
const formData = new FormData();
formData.append("file", {
uri: imageData.localUri,
@@ -149,8 +148,8 @@ export const uploadToImgproxy = async (
file,
options
);
debugger;
console.log(s3UploadResponse);
} catch (error) {
console.log("Error uploading to S3", error.message, error.stack);
Sentry.Native.captureException(error);