Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large files result in 429 server error - too many requests #602

Open
xongooli opened this issue Feb 16, 2022 · 1 comment
Open

Large files result in 429 server error - too many requests #602

xongooli opened this issue Feb 16, 2022 · 1 comment

Comments

@xongooli
Copy link

xongooli commented Feb 16, 2022

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..

@alexandrelance
Copy link

alexandrelance commented Jun 6, 2022

@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());
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants