I made this in ordre to keep the directory web/uploads/badges in the project, I don't need to create it in the code this way.