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

413 error if sdist is too big #5

Closed
cournape opened this issue Sep 15, 2010 · 1 comment
Closed

413 error if sdist is too big #5

cournape opened this issue Sep 15, 2010 · 1 comment
Milestone

Comments

@cournape
Copy link

Hi,

I have a djangopypi instance installed, and it works well, but when I tried to upload a "big" (~1.7MB) tarball, I got back a 413 http error.

@benliles
Copy link
Owner

I just tested on my instance with a 50MB tarball and received no errors. It is possible that your server isn't configured to allow uploads of that size. I ran into this on one of my hosted services. In that case, Django was using a temporary file in memory for uploads and was killed by the host for too much RAM usage. You can set the FILE_UPLOAD_MAX_MEMORY_SIZE or change the FILE_UPLOAD_HANDLERS so that the memory handler is not used. I chose to change the FILE_UPLOAD_HANDLERS, but it depends on your host.

For more information, see http://docs.djangoproject.com/en/dev/topics/http/file-uploads/#changing-upload-handler-behavior

This issue was closed.
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