Extract "get file" button operation to thread