Add support for type and dest in config file (works for initial upload)