add AttachmenService
change TokenBasedUploadCommand to use new AttachmentService