Added the appID to the uploadPath and throw an error if user does not provide it.