Mohamed Abu Basith commited on
Commit
9c4afc1
·
1 Parent(s): b8c3484

CHG: path added

Browse files
Files changed (1) hide show
  1. routes/profileUpdate.js +1 -1
routes/profileUpdate.js CHANGED
@@ -54,7 +54,7 @@ router.post('/', upload.single('file'), async (req, res) => {
54
  const imageName = req.file.filename; // Name of the uploaded file
55
 
56
  // Upload the file to Firebase Storage
57
- await firebase.uploadFile(imagePath, "profile/" + imageName);
58
  await firebase.generateSignedUrl("profile/" + imageName)
59
  .then(url => {
60
  imageUrl = url;
 
54
  const imageName = req.file.filename; // Name of the uploaded file
55
 
56
  // Upload the file to Firebase Storage
57
+ await firebase.uploadFile(filePath, "profile/" + imageName);
58
  await firebase.generateSignedUrl("profile/" + imageName)
59
  .then(url => {
60
  imageUrl = url;