---
title: "Comment by Pooja on \"How to Upload Audio and Video to Cloudinary in Nodejs\" | Hashnode"
description: "Hi i want to store the audio file in database when i try your solution i am getting error &quot;const { path } = req.file; // file becomes available i am not ge"
url: "https://hashnode.com/posts/how-to-upload-audio-and-video-to-cloudinary-in-nodejs/60c729454e04b16f76731cfb/comment/60f7ccee3e181324dac71d7b"
---

[Discussion](https://hashnode.com/posts/how-to-upload-audio-and-video-to-cloudinary-in-nodejs/60c729454e04b16f76731cfb)

Comment [How to Upload Audio and Video to Cloudinary in Nodejs](https://hashnode.com/posts/how-to-upload-audio-and-video-to-cloudinary-in-nodejs/60c729454e04b16f76731cfb)

[Pooja](https://hashnode.com/@pooja131)

[Jul 21, 2021](https://hashnode.com/posts/how-to-upload-audio-and-video-to-cloudinary-in-nodejs/60c729454e04b16f76731cfb/comment/60f7ccee3e181324dac71d7b)

Hi i want to store the audio file in database when i try your solution i am getting error "const { path } = req.file; // file becomes available i am not getting what to do can you help me out

[Idris Olubisi](https://hashnode.com/@olanetsoft)

[Jul 21, 2021](https://hashnode.com/posts/how-to-upload-audio-and-video-to-cloudinary-in-nodejs/60c729454e04b16f76731cfb/comment/60f7ccee3e181324dac71d7b#reply-60f7e33e3e181324dac72101)

Hi [Pooja](https://hashnode.com/@pooja131) thanks for reaching out. I have a few confirmations

1.  where exactly did you add the "const { path } = req.file; // file becomes available" in the codebase, this matters because it's only available after the actual upload is done.
    
2.  can you share a link to the repo for additional troubleshooting if option1 did not fix it.
    

[Pooja](https://hashnode.com/@pooja131)

[Jul 22, 2021](https://hashnode.com/posts/how-to-upload-audio-and-video-to-cloudinary-in-nodejs/60c729454e04b16f76731cfb/comment/60f7ccee3e181324dac71d7b#reply-60f91de174648858f4bb43b6)

okat i will share[Olubisi Idris Ayinde](https://hashnode.com/@olanetsoft) yes i will share you link of repo
