Prepare for unit testing and logic of file uploads.