Adding processFileUpload function