missions s3
This commit is contained in:
parent
d07f48394a
commit
f1db84bca7
@ -8,12 +8,14 @@ import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
||||
|
||||
// Generate the mission logo path in Minio
|
||||
export function getMissionLogoPath(userId: string, missionId: string, fileExtension: string): string {
|
||||
return `user-${userId}/${missionId}/logo${fileExtension}`;
|
||||
// Simplify path to match pages bucket structure
|
||||
return `${missionId}/logo${fileExtension}`;
|
||||
}
|
||||
|
||||
// Generate the mission attachment path in Minio
|
||||
export function getMissionAttachmentPath(userId: string, missionId: string, filename: string): string {
|
||||
return `user-${userId}/${missionId}/attachments/${filename}`;
|
||||
// Simplify path to match pages bucket structure
|
||||
return `${missionId}/attachments/${filename}`;
|
||||
}
|
||||
|
||||
// Upload mission logo to Minio
|
||||
|
||||
Loading…
Reference in New Issue
Block a user