upload and archive