Pergunta de entrevista da empresa Objects

how should i handle a long process ( sending a large file ) , that would timeout on the request