We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b019948 commit fb485c6Copy full SHA for fb485c6
app/utils/storage.server.ts
@@ -49,10 +49,6 @@ export async function uploadNoteImage(
49
return uploadToStorage(file, key)
50
}
51
52
-function getImageUrl(imageId: string) {
53
- return `${STORAGE_ENDPOINT}/${STORAGE_BUCKET}/${imageId}`
54
-}
55
-
56
function hmacSha256(key: string | Buffer, message: string) {
57
const hmac = createHmac('sha256', key)
58
hmac.update(message)
@@ -89,7 +85,7 @@ function getBaseSignedRequestInfo({
89
85
contentType?: string
90
86
uploadDate?: string
91
87
}) {
92
- const url = getImageUrl(key)
88
+ const url = `${STORAGE_ENDPOINT}/${STORAGE_BUCKET}/${key}`
93
const endpoint = new URL(url)
94
95
// Prepare date strings
0 commit comments