Skip to content

Commit

Permalink
Fix/firebase store location (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Mar 24, 2024
2 parents 5a0315d + 2ae26da commit acd13df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/backend/src/services/storage/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const generateKey = (objectType: ObjectTypes): string => {

// Generate a public URL for the object
const generateStorageLocation = (key: string): string => {
const location = `https://firebasestorage.googleapis.com/v0/b/${BUCKET}/o/${key}?alt=media`;
const location = `https://firebasestorage.googleapis.com/v0/b/${BUCKET}/o/${encodeURIComponent(
key,
)}?alt=media`;

return location;
};
Expand Down

0 comments on commit acd13df

Please sign in to comment.