Implementation of file download operation.