Rate Limiting
This endpoint allows 3 uploads every 15 seconds. Upload several small files in quick succession to see the live site return a real 429 Too Many Requests response.
What you should see: one upload at a time by design, to stay within a server-side rate limit. Queue several files and they go strictly one after another.
Demo Window
Permit limit: 3 uploads
Reset window: 15 seconds
Accepted: 0 Rejected: 0
Upload a few files quickly to trigger the server-side limiter.
builder.Services.AddRateLimiter(options => {
options.AddFixedWindowLimiter("DemoSecurityUploadPolicy", limiter => {
limiter.PermitLimit = 3;
limiter.Window = TimeSpan.FromSeconds(15);
});
});