upload doc, set time limit, and delete from server when time runs out