Can build an URL for an upload resource

New -urlimg and -urlraw flags.