Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/firebase store location #1358

Merged
merged 9 commits into from
Mar 24, 2024
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