Fix for alias uploads

Devices use :device_id rather than :id.