I am building music app, but I do not know how can I upload music to database, any help will be appreciated
CodePudding user response:
I think you cant store a file into a database, you only can save it in a storage. And in your database, you can put the path of your file location.
CodePudding user response:
You can't upload music to any database. Upload your image to aws or cloudinary or to your local storage system, get the link and save that to the database.
CodePudding user response:
To store files in mongodb, you can convert the mp3 into binary or base64, then store the binary data.