Functionality for processing uploaded files