Base solution for your next web application
Open Closed

Where tenant logo is stored in Database and in which file folder? Also how to upload the tenant logo from the Admin UI? #8529


User avatar
0
optixdev created

Angular + .Net Core

Where tenant logo is stored in Database and in which file folder? Also how to upload the tenant logo from the Admin UI?

From the below url I am able to fetch logo but this is default ASP.NET ZERO logo. remoteServiceBaseUrl + '/TenantCustomization/GetTenantLogo?skin=' + currentTheme.baseSettings.menu.asideSkin + '&tenantId=' + appSession.tenant.id + '&id=' + appSession.tenant.logoId


4 Answer(s)
  • User Avatar
    0
    musa.demir created

    As you can see here

    var logoObject = await _binaryObjectManager.GetOrNullAsync(tenant.LogoId.Value);
    return File(logoObject.Bytes, tenant.LogoFileType);
    

    it is stored in AppBinaryObjects table.

    Changing tenant's logo is not implemented but you can change and use that function for your needs: https://github.com/aspnetzero/aspnet-zero-core/blob/d71edc0cc4af0e6d99a86a32ea74fc69790cb53a/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Core/Controllers/TenantCustomizationController.cs#L38-L80

  • User Avatar
    0
    optixdev created

    Github Page Not Found

  • User Avatar
    0
    musa.demir created

    It mean your github account does not have permission. Your ASP.NET ZERO account owner should login to aspnetzero.com, then go to https://aspnetzero.com/LicenseManagement page, open Github Member tab and add your github account.

  • User Avatar
    0
    musa.demir created