Activities of "maliming"

你还可以继续使用应用服务而不是手动创建HttpClient

public override void PreConfigureServices(ServiceConfigurationContext context)
{
    PreConfigure<AbpHttpClientBuilderOptions>(options =>
    {
        options.ProxyClientBuildActions.Add((_, builder) =>
        {
            builder.AddHttpMessageHandler<BrowserRequestStreamingHandler>();
        });
    });
}
public sealed class BrowserRequestStreamingHandler : DelegatingHandler, ITransientDependency
{
    protected override async Task<HttpResponseMessage> SendAsync(
        HttpRequestMessage request,
        CancellationToken cancellationToken)
    {
        request.SetBrowserRequestStreamingEnabled(true);
        return await base.SendAsync(request, cancellationToken);
    }
}

Great!

But the logs only write if the feature check failed.

Can you check the AbpFeatureValues table?

hi

If the current tenant is not the host, you need to enable it on the tenant side.

Thanks.

You also need to configure the backend limit.

Log.Information("Starting Uploadtest.HttpApi.Host.");
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(o =>
{
    o.Limits.MaxRequestBodySize = 2L*1024 * 1024 * 1024;
});

builder.Services.Configure<FormOptions>(o =>
{
    o.MultipartBodyLengthLimit = 2L*1024 * 1024 * 1024;
});

是的, 你可以这样试试

private async Task<AppFileDescriptorDto> UploadFileAsync(IBrowserFile file)
{
    // using (var ms = file.OpenReadStream(2L*1024*1024*1024))
    // {
    //     return await UpFilesAppService.UploadFileAsync(new RemoteStreamContent(ms, file.Name, file.ContentType));
    // }

    await using (var stream = file.OpenReadStream(MaxUpFileFsFileUploadSize))
    {
        using (var content = new MultipartFormDataContent())
        {
            using (var fileContent = new StreamContent(stream))
            {
                fileContent.Headers.ContentType = new MediaTypeHeaderValue(file.ContentType ?? "application/octet-stream");
                content.Add(fileContent, "input", file.Name);

                using var request = new HttpRequestMessage(HttpMethod.Post, "https://localhost:44362/api/app/up-files/upload-file");
                var token = await AccessTokenProvider.GetTokenAsync();
                if (!token.IsNullOrWhiteSpace())
                {
                    request.SetBearerToken(token);
                }
                request.Content = content;
                request.SetBrowserRequestStreamingEnabled(true);

                using var response = await new HttpClient().SendAsync(request, HttpCompletionOption.ResponseHeadersRead);
                response.EnsureSuccessStatusCode();

                var dto = await response.Content.ReadFromJsonAsync<AppFileDescriptorDto>();
                return dto!;
            }
        }
    }
}

ok, I will check it.

hi

The repository is empty?

hi

2026-02-02 21:19:52.419 -06:00 [WRN] Ldap login feature is not enabled! 2026-02-02 21:19:52.421 -06:00 [WRN] OAuth login feature is not enabled!

Can you enable the OAuth feature in settings page?

Manage host features

Thanks.

hi

This is most likely because the distributed event bus isn't working properly.

SaasService will publish a TenantCreatedEto event, and IdentityService will create the admin for the new tenant.

Can you check the logs of IdentityService?

Thanks.

Showing 1091 to 1100 of 12929 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on November 02, 2026, 06:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.