Synthesis of N-sugar-substituted phthalimides and their derivatives from sugar azides and phthalic anhydride.