@Eduardo Coelho The question might be already answered, but I suggest don't store the files directly in the database, it's not bad if you only storing a few files or depending on the requirements, but if the requirement is store a lot of files, thousands of it, then it will be get bad in the future.
Try to save it on cloud storage like S3
- Generate a public path then save it to your database/table
Please read this about storing files on the database.
Cheers, mate.