Update ID counter on file upload.