Giter Club home page Giter Club logo

Comments (5)

sehmaschine avatar sehmaschine commented on July 29, 2024

local or on a production server? you didn´t set limitrequestbody? what exactly do you mean with "it fails"?

max upload size is limited to 10MB:
https://github.com/sehmaschine/django-filebrowser/blob/master/filebrowser/settings.py#L95

maybe this is good to start with debugging:
https://github.com/sehmaschine/django-filebrowser/blob/master/filebrowser/sites.py#L475
https://github.com/sehmaschine/django-filebrowser/blob/master/filebrowser/templates/filebrowser/upload.html#L55

the file-upload we´re using:
http://valums.com/ajax-upload/

from django-filebrowser.

honza avatar honza commented on July 29, 2024

Local server works fine with any file. It's the production server that is having issues. When I say it fails, I mean the upload screen just displays an error message that says Failed.

I overrode the max upload size to 100MB.

I'll have a look at the two places you suggested.

from django-filebrowser.

honza avatar honza commented on July 29, 2024

It seems to be an nginx issue. The upload-file handler comes back as 413 entity too large. Not quite sure how to fix this yet.

from django-filebrowser.

sehmaschine avatar sehmaschine commented on July 29, 2024

I only know that happening with limitrequestbody (but that´s apache, of course). not sure about nginx though.

from django-filebrowser.

honza avatar honza commented on July 29, 2024

Perfect, problem solved. I had a look at LimitRequestBody directive in Apache and found the nginx version. By default, nginx only allows 1MB of uploads. Here, I set it to 100MB.

server {
    listen 80;
    server_name  example.com;

    location / {
        client_max_body_size 100M;
        proxy_pass http://127.0.0.1:8888;
        ...
    }

}

Might be a good idea to start server-related set up page? Thanks for your help!

from django-filebrowser.

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.