i have seen many times questions about this, so here is a way to upload your own templates or iso in cloudstack.
this may not be the best solution, but this is the way I uploaded my own templates/isos and it works! any suggestion is very welcome!

Hope this can help someone!