allowing different file types, and moving to upload package