Changed moddate so that it only updates IF all uploads succeeded.