Private download link generator
Invalidate flags in upload and destroy