I'm developing an app that will store a lot of files, and in case of images, it will resize them and save the different thumbnails we need, so when a user uploads an image, it will save more 8 files (this is needed).

To avoid duplicated files and to save space on my static hosting server, my app is saving the file name as "MD5.BYTE\_SIZE" (ex: 054d995efa7e9c91569d205d24a2b486.188154)

I've used this file scheme already on another clients without any problems, but I need to know, specifically to this project, if there exists the possibility of the user sending a file with the same MD5, and same size length.

If so, what's the best way to save my file names? With two different hashes (like MD5.SHA-256.BYTE\_SIZE)?