PHP Script that allows you to reformat an array of uploaded files into file groups.