Giter VIP home page Giter VIP logo

Comments (8)

stonith404 avatar stonith404 commented on September 23, 2024 1

Added in the newest version. You can find the setting in the share tab of the admin settings.

from pingvin-share.

stonith404 avatar stonith404 commented on September 23, 2024 1

Oh I have found the issue. The limit for the body parser gets set in the bootstrap function of the backend which only gets called when the application starts. So if you change the chunk size the changes will only be applied when you restart the application.

I'll release a fix later today until then you have to restart the application. Thanks for your feedback!

from pingvin-share.

droplinxuser avatar droplinxuser commented on September 23, 2024

That is very quick; I'll test it now.
Thanks a lot.

from pingvin-share.

droplinxuser avatar droplinxuser commented on September 23, 2024

Increasing it, I always got this error during large file uploads:
413 Payload Too Large

I tried 32, 25, 20, and 16 MB chunk sizes so far.
Cloudflare allows 100MB; my Nginx allows 1GB.

Is there anything on the app backend that limits the file size for uploads?

from pingvin-share.

droplinxuser avatar droplinxuser commented on September 23, 2024

On the front-end app, I got this log:

node[2416818]: 
API response for /api/shares/1gb/files/e9d69354-515d-455d-a608-2468044ce8b5 exceeds 4MB. 
API Routes are meant to respond quickly. https://nextjs.org/docs/messages/api-routes-response-size-limit

So I lower it down to 4MB to prevent the error above.

from pingvin-share.

droplinxuser avatar droplinxuser commented on September 23, 2024

On the front-end app, I got this log:

node[2416818]: 
API response for /api/shares/1gb/files/e9d69354-515d-455d-a608-2468044ce8b5 exceeds 4MB. 
API Routes are meant to respond quickly. https://nextjs.org/docs/messages/api-routes-response-size-limit

I think this error log or warning happens when a large file is downloaded, like this URI path for a 1GB file.
Not related to file uploads, I guess.

from pingvin-share.

stonith404 avatar stonith404 commented on September 23, 2024

So, does the error occur when you try to download a file?

If not, it should be resolved in the latest version. Let me know if the issue still exists.

from pingvin-share.

droplinxuser avatar droplinxuser commented on September 23, 2024

So, does the error occur when you try to download a file?

Yes correct.

from pingvin-share.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.