MCPcopy Index your code
hub / github.com/simstudioai/sim / getPresignedUrl

Function getPresignedUrl

apps/sim/lib/uploads/providers/s3/client.ts:141–148  ·  view source on GitHub ↗
(key: string, expiresIn = 3600)

Source from the content-addressed store, hash-verified

139 * @returns Presigned URL
140 */
141export async function getPresignedUrl(key: string, expiresIn = 3600) {
142 const command = new GetObjectCommand({
143 Bucket: S3_CONFIG.bucket,
144 Key: key,
145 })
146
147 return getSignedUrl(getS3Client(), command, { expiresIn })
148}
149
150/**
151 * Generate a presigned URL for direct file access with custom bucket

Callers 1

client.test.tsFile · 0.90

Calls 1

getS3ClientFunction · 0.85

Tested by

no test coverage detected