23/resumable.js

Large files result in 429 server error - too many requests

xongooli opened this issue · 1 comments

Large files result in a 429 server error - too many requests

This causes the upload to fail.

Should I increase the chunk size to reduce the number of requests and I so what is the best way to do it.

I'm using Resumable.js inside of Vue.js connected to a Laravel application..

@xongooli Hello, you can increase a limit of requests per minute value on the server side.

For example, you can create a custom RateLimiter and configure it to the RouteServiceProvider configureRateLimiting() method.

RateLimiter::for('resumablejs-req', function (Request $request) {
            return Limit::perMinute(600)->by(optional($request->user())->id ?: $request->ip());
});