Fix services authorization and file upload