The path to the images I have is stored in the directory 5/images/1231231.jpeg where 5 is the user id, this path is stored in the database.

Is it correct to use id as a directory (there is one minus, many folders in a directory)?

How to do it right.

If there are links on this topic I will be glad to see.

    0