Fixed: not entity in shared upload and download functions.