Add timeout to upload file