LPS-49956 Divide uploadURL into two parts in order to delete class name from url.
LPS-49956 Why do we need the permissions url for? I think that it was included in the url by error and we should just remove it?