I am able to upload my .wav files and the converted mp3 files using ffmpeg converter that convert .wav files to mp3 in uploads folder but can't able to show them on browser. I am using angular js and node js for doing this . I am new to angular and node . Please help? I want to show all the files on browser instead of uploading to uploads folder?
will make your upload files available under http://localhost:3000/uploads/*.
I added it to app.js but it's not displaying when running local host? http://localhost:3000/uploads/* when using this it says cannot GET/uploads/
You need to specify the actual file name instead of *, so if your uploaded file is called upload.mp3 it would be http://localhost:3000/uploads/upload.mp3.
Hey, thank you so much for this help .
It's working fine but what to do if I want to display multiple files.
I want all my previously uploaded .wav files and .mp3 files to be displayed and also which I upload recently should be displayed on browser? It means I want previously uploaded files to be visible when running localhost with the recently uploaded files . I want to display all my uploads folder files displayed when running http://localhost:3000 ? Please Help..
I want to display uploads folder files on client side UI I want it for users? Please help..
I tried but not able to do so
I would advise you to post this to StackOverflow since it's not related specifically to multer but more to general Node.js development.
Closing this since, listing files in a directory is outside the scope of multer. Thanks shime for you helpful comments, it's appreciated!
Most helpful comment
Can you share some code so we could help? Maybe StackOverflow is a better place for asking these sort of questions.