Add referential id in upload and download